﻿

/* compile-prolog.js */
window.SimileAjax_isCompiled=true;


/* simile-ajax-api.js */
if(typeof SimileAjax=="undefined"){var isCompiled=("SimileAjax_isCompiled" in window)&&window.SimileAjax_isCompiled;
var SimileAjax={loaded:false,loadingScriptsCount:0,error:null,params:{bundle:"true"}};
SimileAjax.Platform=new Object();
var getHead=function(A){return A.getElementsByTagName("head")[0];
};
SimileAjax.findScript=function(G,C){var F=G.documentElement.getElementsByTagName("head");
for(var D=0;
D<F.length;
D++){var E=F[D].firstChild;
while(E!=null){if(E.nodeType==1&&E.tagName.toLowerCase()=="script"){var A=E.src;
var B=A.indexOf(C);
if(B>=0){return A;
}}E=E.nextSibling;
}}return null;
};
SimileAjax.includeJavascriptFile=function(F,C,A,G){A=A||"";
if(F.body==null){try{var D="'"+A.replace(/'/g,"&apos")+"'";
F.write("<script src='"+C+"' onerror="+D+(G?" charset='"+G+"'":"")+" type='text/javascript'>"+A+"<\/script>");
return ;
}catch(E){}}var B=F.createElement("script");
if(A){try{B.innerHTML=A;
}catch(E){}B.setAttribute("onerror",A);
}if(G){B.setAttribute("charset",G);
}B.type="text/javascript";
B.language="JavaScript";
B.src=C;
return getHead(F).appendChild(B);
};
SimileAjax.includeJavascriptFiles=function(D,A,C){for(var B=0;
B<C.length;
B++){SimileAjax.includeJavascriptFile(D,A+C[B]);
}SimileAjax.loadingScriptsCount+=C.length;
SimileAjax.includeJavascriptFile(D,SimileAjax.urlPrefix+"scripts/signal.js?"+C.length);
};
SimileAjax.includeCssFile=function(D,A){if(D.body==null){try{D.write("<link rel='stylesheet' href='"+A+"' type='text/css'/>");
return ;
}catch(C){}}var B=D.createElement("link");
B.setAttribute("rel","stylesheet");
B.setAttribute("type","text/css");
B.setAttribute("href",A);
getHead(D).appendChild(B);
};
SimileAjax.includeCssFiles=function(D,A,C){for(var B=0;
B<C.length;
B++){SimileAjax.includeCssFile(D,A+C[B]);
}};
SimileAjax.prefixURLs=function(D,A,B){for(var C=0;
C<B.length;
C++){D.push(A+B[C]);
}};
SimileAjax.parseURLParameters=function(D,M,J){M=M||{};
J=J||{};
if(typeof D=="undefined"){D=location.href;
}var C=D.indexOf("?");
if(C<0){return M;
}D=(D+"#").slice(C+1,D.indexOf("#"));
var G=D.split("&"),F,L={};
var A=window.decodeURIComponent||unescape;
for(var I=0;
F=G[I];
I++){var N=F.indexOf("=");
var B=A(F.slice(0,N));
var E=L[B];
if(typeof E=="undefined"){E=[];
}else{if(!(E instanceof Array)){E=[E];
}}L[B]=E.concat(A(F.slice(N+1)));
}for(var I in L){if(!L.hasOwnProperty(I)){continue;
}var K=J[I]||String;
var H=L[I];
if(!(H instanceof Array)){H=[H];
}if(K===Boolean&&H[0]=="false"){M[I]=false;
}else{M[I]=K.apply(this,H);
}}return M;
};
if(!isCompiled){(function(){var C=["platform.js","debug.js","xmlhttp.js","json.js","dom.js","graphics.js","date-time.js","string.js","html.js","data-structure.js","units.js","ajax.js","history.js","window-manager.js"];
var A=["graphics.css"];
if(!("jQuery" in window)&&!("$" in window)){C.unshift("jquery-1.3.2.min.js");
}if(typeof SimileAjax_urlPrefix=="string"){SimileAjax.urlPrefix=SimileAjax_urlPrefix;
}else{var B=SimileAjax.findScript(document,"simile-ajax-api.js");
if(B==null){SimileAjax.error=new Error("Failed to derive URL prefix for Simile Ajax API code files");
return ;
}SimileAjax.urlPrefix=B.substr(0,B.indexOf("simile-ajax-api.js"));
SimileAjax.parseURLParameters(B,SimileAjax.params,{bundle:Boolean});
}if(!isCompiled){if(SimileAjax.params.bundle){SimileAjax.includeJavascriptFiles(document,SimileAjax.urlPrefix,["simile-ajax-bundle.js"]);
}else{SimileAjax.includeJavascriptFiles(document,SimileAjax.urlPrefix+"scripts/",C);
}SimileAjax.includeCssFiles(document,SimileAjax.urlPrefix+"styles/",A);
}SimileAjax.loaded=true;
})();
}}

/* simile-ajax-bundle.js */
if(!("jQuery" in window)&&!("$" in window)){(function(){var D=this,z,r=D.jQuery,d=D.$,c=D.jQuery=D.$=function(F,E){return new c.fn.init(F,E);
},j=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,y=/^.[^:#\[\.,]*$/;
c.fn=c.prototype={init:function(F,I){F=F||document;
if(F.nodeType){this[0]=F;
this.length=1;
this.context=F;
return this;
}if(typeof F==="string"){var H=j.exec(F);
if(H&&(H[1]||!I)){if(H[1]){F=c.clean([H[1]],I);
}else{var E=document.getElementById(H[3]);
if(E&&E.id!=H[3]){return c().find(F);
}var G=c(E||[]);
G.context=document;
G.selector=F;
return G;
}}else{return c(I).find(F);
}}else{if(c.isFunction(F)){return c(document).ready(F);
}}if(F.selector&&F.context){this.selector=F.selector;
this.context=F.context;
}return this.setArray(c.isArray(F)?F:c.makeArray(F));
},selector:"",jquery:"1.3.2",size:function(){return this.length;
},get:function(E){return E===z?Array.prototype.slice.call(this):this[E];
},pushStack:function(G,E,F){var H=c(G);
H.prevObject=this;
H.context=this.context;
if(E==="find"){H.selector=this.selector+(this.selector?" ":"")+F;
}else{if(E){H.selector=this.selector+"."+E+"("+F+")";
}}return H;
},setArray:function(E){this.length=0;
Array.prototype.push.apply(this,E);
return this;
},each:function(E,F){return c.each(this,E,F);
},index:function(E){return c.inArray(E&&E.jquery?E[0]:E,this);
},attr:function(G,E,H){var F=G;
if(typeof G==="string"){if(E===z){return this[0]&&c[H||"attr"](this[0],G);
}else{F={};
F[G]=E;
}}return this.each(function(I){for(G in F){c.attr(H?this.style:this,G,c.prop(this,F[G],H,I,G));
}});
},css:function(F,E){if((F=="width"||F=="height")&&parseFloat(E)<0){E=z;
}return this.attr(F,E,"curCSS");
},text:function(E){if(typeof E!=="object"&&E!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(E));
}var F="";
c.each(E||this,function(){c.each(this.childNodes,function(){if(this.nodeType!=8){F+=this.nodeType!=1?this.nodeValue:c.fn.text([this]);
}});
});
return F;
},wrapAll:function(F){if(this[0]){var E=c(F,this[0].ownerDocument).clone();
if(this[0].parentNode){E.insertBefore(this[0]);
}E.map(function(){var G=this;
while(G.firstChild){G=G.firstChild;
}return G;
}).append(this);
}return this;
},wrapInner:function(E){return this.each(function(){c(this).contents().wrapAll(E);
});
},wrap:function(E){return this.each(function(){c(this).wrapAll(E);
});
},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E);
}});
},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild);
}});
},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this);
});
},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling);
});
},end:function(){return this.prevObject||c([]);
},push:[].push,sort:[].sort,splice:[].splice,find:function(F){if(this.length===1){var E=this.pushStack([],"find",F);
E.length=0;
c.find(F,this[0],E);
return E;
}else{return this.pushStack(c.unique(c.map(this,function(G){return c.find(F,G);
})),"find",F);
}},clone:function(H){var F=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var I=this.outerHTML;
if(!I){var J=this.ownerDocument.createElement("div");
J.appendChild(this.cloneNode(true));
I=J.innerHTML;
}return c.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];
}else{return this.cloneNode(true);
}});
if(H===true){var E=this.find("*").andSelf(),G=0;
F.find("*").andSelf().each(function(){if(this.nodeName!==E[G].nodeName){return ;
}var K=c.data(E[G],"events");
for(var J in K){for(var I in K[J]){c.event.add(this,J,K[J][I],K[J][I].data);
}}G++;
});
}return F;
},filter:function(E){return this.pushStack(c.isFunction(E)&&c.grep(this,function(G,F){return E.call(G,F);
})||c.multiFilter(E,c.grep(this,function(F){return F.nodeType===1;
})),"filter",E);
},closest:function(F){var E=c.expr.match.POS.test(F)?c(F):null,G=0;
return this.map(function(){var H=this;
while(H&&H.ownerDocument){if(E?E.index(H)>-1:c(H).is(F)){c.data(H,"closest",G);
return H;
}H=H.parentNode;
G++;
}});
},not:function(F){if(typeof F==="string"){if(y.test(F)){return this.pushStack(c.multiFilter(F,this,true),"not",F);
}else{F=c.multiFilter(F,this);
}}var E=F.length&&F[F.length-1]!==z&&!F.nodeType;
return this.filter(function(){return E?c.inArray(this,F)<0:this!=F;
});
},add:function(E){return this.pushStack(c.unique(c.merge(this.get(),typeof E==="string"?c(E):c.makeArray(E))));
},is:function(E){return !!E&&c.multiFilter(E,this).length>0;
},hasClass:function(E){return !!E&&this.is("."+E);
},val:function(F){if(F===z){var I=this[0];
if(I){if(c.nodeName(I,"option")){return(I.attributes.value||{}).specified?I.value:I.text;
}if(c.nodeName(I,"select")){var M=I.selectedIndex,G=[],H=I.options,L=I.type=="select-one";
if(M<0){return null;
}for(var J=L?M:0,E=L?M+1:H.length;
J<E;
J++){var K=H[J];
if(K.selected){F=c(K).val();
if(L){return F;
}G.push(F);
}}return G;
}return(I.value||"").replace(/\r/g,"");
}return z;
}if(typeof F==="number"){F+="";
}return this.each(function(){if(this.nodeType!=1){return ;
}if(c.isArray(F)&&/radio|checkbox/.test(this.type)){this.checked=(c.inArray(this.value,F)>=0||c.inArray(this.name,F)>=0);
}else{if(c.nodeName(this,"select")){var N=c.makeArray(F);
c("option",this).each(function(){this.selected=(c.inArray(this.value,N)>=0||c.inArray(this.text,N)>=0);
});
if(!N.length){this.selectedIndex=-1;
}}else{this.value=F;
}}});
},html:function(E){return E===z?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E);
},replaceWith:function(E){return this.after(E).remove();
},eq:function(E){return this.slice(E,+E+1);
},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));
},map:function(E){return this.pushStack(c.map(this,function(G,F){return E.call(G,F,G);
}));
},andSelf:function(){return this.add(this.prevObject);
},domManip:function(E,H,G){if(this[0]){var M=(this[0].ownerDocument||this[0]).createDocumentFragment(),J=c.clean(E,(this[0].ownerDocument||this[0]),M),L=M.firstChild;
if(L){for(var K=0,I=this.length;
K<I;
K++){G.call(F(this[K],L),this.length>1||K>0?M.cloneNode(true):M);
}}if(J){c.each(J,s);
}}return this;
function F(N,O){return H&&c.nodeName(N,"table")&&c.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N;
}}};
c.fn.init.prototype=c.fn;
function s(F,E){if(E.src){c.ajax({url:E.src,async:false,dataType:"script"});
}else{c.globalEval(E.text||E.textContent||E.innerHTML||"");
}if(E.parentNode){E.parentNode.removeChild(E);
}}function x(){return +new Date;
}c.extend=c.fn.extend=function(){var J=arguments[0]||{},G=1,H=arguments.length,I=false,F;
if(typeof J==="boolean"){I=J;
J=arguments[1]||{};
G=2;
}if(typeof J!=="object"&&!c.isFunction(J)){J={};
}if(H==G){J=this;
--G;
}for(;
G<H;
G++){if((F=arguments[G])!=null){for(var L in F){var K=J[L],E=F[L];
if(J===E){continue;
}if(I&&E&&typeof E==="object"&&!E.nodeType){J[L]=c.extend(I,K||(E.length!=null?[]:{}),E);
}else{if(E!==z){J[L]=E;
}}}}}return J;
};
var u=/z-?index|font-?weight|opacity|zoom|line-?height/i,f=document.defaultView||{},k=Object.prototype.toString;
c.extend({noConflict:function(E){D.$=d;
if(E){D.jQuery=r;
}return c;
},isFunction:function(E){return k.call(E)==="[object Function]";
},isArray:function(E){return k.call(E)==="[object Array]";
},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&c.isXMLDoc(E.ownerDocument);
},globalEval:function(E){if(E&&/\S/.test(E)){var G=document.getElementsByTagName("head")[0]||document.documentElement,F=document.createElement("script");
F.type="text/javascript";
if(c.support.scriptEval){F.appendChild(document.createTextNode(E));
}else{F.text=E;
}G.insertBefore(F,G.firstChild);
G.removeChild(F);
}},nodeName:function(E,F){return E.nodeName&&E.nodeName.toUpperCase()==F.toUpperCase();
},each:function(G,F,E){var K,H=0,I=G.length;
if(E){if(I===z){for(K in G){if(F.apply(G[K],E)===false){break;
}}}else{for(;
H<I;
){if(F.apply(G[H++],E)===false){break;
}}}}else{if(I===z){for(K in G){if(F.call(G[K],K,G[K])===false){break;
}}}else{for(var J=G[0];
H<I&&F.call(J,H,J)!==false;
J=G[++H]){}}}return G;
},prop:function(I,E,H,G,F){if(c.isFunction(E)){E=E.call(I,G);
}return typeof E==="number"&&H=="curCSS"&&!u.test(F)?E+"px":E;
},className:{add:function(F,E){c.each((E||"").split(/\s+/),function(G,H){if(F.nodeType==1&&!c.className.has(F.className,H)){F.className+=(F.className?" ":"")+H;
}});
},remove:function(F,E){if(F.nodeType==1){F.className=E!==z?c.grep(F.className.split(/\s+/),function(G){return !c.className.has(E,G);
}).join(" "):"";
}},has:function(E,F){return E&&c.inArray(F,(E.className||E).toString().split(/\s+/))>-1;
}},swap:function(I,H,E){var F={};
for(var G in H){F[G]=I.style[G];
I.style[G]=H[G];
}E.call(I);
for(var G in H){I.style[G]=F[G];
}},css:function(G,L,J,I){if(L=="width"||L=="height"){var F,E={position:"absolute",visibility:"hidden",display:"block"},K=L=="width"?["Left","Right"]:["Top","Bottom"];
function H(){F=L=="width"?G.offsetWidth:G.offsetHeight;
if(I==="border"){return ;
}c.each(K,function(){if(!I){F-=parseFloat(c.curCSS(G,"padding"+this,true))||0;
}if(I==="margin"){F+=parseFloat(c.curCSS(G,"margin"+this,true))||0;
}else{F-=parseFloat(c.curCSS(G,"border"+this+"Width",true))||0;
}});
}if(G.offsetWidth!==0){H();
}else{c.swap(G,E,H);
}return Math.max(0,Math.round(F));
}return c.curCSS(G,L,J);
},curCSS:function(M,J,K){var G,I=M.style;
if(J=="opacity"&&!c.support.opacity){G=c.attr(I,"opacity");
return G==""?"1":G;
}if(J.match(/float/i)){J=p;
}if(!K&&I&&I[J]){G=I[J];
}else{if(f.getComputedStyle){if(J.match(/float/i)){J="float";
}J=J.replace(/([A-Z])/g,"-$1").toLowerCase();
var H=f.getComputedStyle(M,null);
if(H){G=H.getPropertyValue(J);
}if(J=="opacity"&&G==""){G="1";
}}else{if(M.currentStyle){var E=J.replace(/\-(\w)/g,function(N,O){return O.toUpperCase();
});
G=M.currentStyle[J]||M.currentStyle[E];
if(!/^\d+(px)?$/i.test(G)&&/^\d/.test(G)){var L=I.left,F=M.runtimeStyle.left;
M.runtimeStyle.left=M.currentStyle.left;
I.left=G||0;
G=I.pixelLeft+"px";
I.left=L;
M.runtimeStyle.left=F;
}}}}return G;
},clean:function(L,K,H){K=K||document;
if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document;
}if(!H&&L.length===1&&typeof L[0]==="string"){var G=/^<(\w+)\s*\/?>$/.exec(L[0]);
if(G){return[K.createElement(G[1])];
}}var F=[],J=[],E=K.createElement("div");
c.each(L,function(P,S){if(typeof S==="number"){S+="";
}if(!S){return ;
}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(T,U,V){return V.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:U+"></"+V+">";
});
var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();
var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
E.innerHTML=Q[1]+S+Q[2];
while(Q[0]--){E=E.lastChild;
}if(!c.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?E.firstChild&&E.firstChild.childNodes:Q[1]=="<table>"&&!R?E.childNodes:[];
for(var M=N.length-1;
M>=0;
--M){if(c.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M]);
}}}if(!c.support.leadingWhitespace&&/^\s/.test(S)){E.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),E.firstChild);
}S=c.makeArray(E.childNodes);
}if(S.nodeType){F.push(S);
}else{F=c.merge(F,S);
}});
if(H){for(var I=0;
F[I];
I++){if(c.nodeName(F[I],"script")&&(!F[I].type||F[I].type.toLowerCase()==="text/javascript")){J.push(F[I].parentNode?F[I].parentNode.removeChild(F[I]):F[I]);
}else{if(F[I].nodeType===1){F.splice.apply(F,[I+1,0].concat(c.makeArray(F[I].getElementsByTagName("script"))));
}H.appendChild(F[I]);
}}return J;
}return F;
},attr:function(J,F,L){if(!J||J.nodeType==3||J.nodeType==8){return z;
}var G=!c.isXMLDoc(J),E=L!==z;
F=G&&c.props[F]||F;
if(J.tagName){var K=/href|src|style/.test(F);
if(F=="selected"&&J.parentNode){J.parentNode.selectedIndex;
}if(F in J&&G&&!K){if(E){if(F=="type"&&c.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed";
}J[F]=L;
}if(c.nodeName(J,"form")&&J.getAttributeNode(F)){return J.getAttributeNode(F).nodeValue;
}if(F=="tabIndex"){var H=J.getAttributeNode("tabIndex");
return H&&H.specified?H.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:z;
}return J[F];
}if(!c.support.style&&G&&F=="style"){return c.attr(J.style,"cssText",L);
}if(E){J.setAttribute(F,""+L);
}var I=!c.support.hrefNormalized&&G&&K?J.getAttribute(F,2):J.getAttribute(F);
return I===null?z:I;
}if(!c.support.opacity&&F=="opacity"){if(E){J.zoom=1;
J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(L)+""=="NaN"?"":"alpha(opacity="+L*100+")");
}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";
}F=F.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase();
});
if(E){J[F]=L;
}return J[F];
},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"");
},makeArray:function(E){var F=[];
if(E!=null){var G=E.length;
if(G==null||typeof E==="string"||c.isFunction(E)||E.setInterval){F[0]=E;
}else{while(G){F[--G]=E[G];
}}}return F;
},inArray:function(H,E){for(var F=0,G=E.length;
F<G;
F++){if(E[F]===H){return F;
}}return -1;
},merge:function(I,F){var G=0,H,E=I.length;
if(!c.support.getAll){while((H=F[G++])!=null){if(H.nodeType!=8){I[E++]=H;
}}}else{while((H=F[G++])!=null){I[E++]=H;
}}return I;
},unique:function(F){var E=[],K={};
try{for(var G=0,H=F.length;
G<H;
G++){var J=c.data(F[G]);
if(!K[J]){K[J]=true;
E.push(F[G]);
}}}catch(I){E=F;
}return E;
},grep:function(G,F,E){var H=[];
for(var I=0,J=G.length;
I<J;
I++){if(!E!=!F(G[I],I)){H.push(G[I]);
}}return H;
},map:function(F,E){var G=[];
for(var H=0,I=F.length;
H<I;
H++){var J=E(F[H],H);
if(J!=null){G[G.length]=J;
}}return G.concat.apply([],G);
}});
var h=navigator.userAgent.toLowerCase();
c.browser={version:(h.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(h),opera:/opera/.test(h),msie:/msie/.test(h)&&!/opera/.test(h),mozilla:/mozilla/.test(h)&&!/(compatible|webkit)/.test(h)};
c.each({parent:function(E){return E.parentNode;
},parents:function(E){return c.dir(E,"parentNode");
},next:function(E){return c.nth(E,2,"nextSibling");
},prev:function(E){return c.nth(E,2,"previousSibling");
},nextAll:function(E){return c.dir(E,"nextSibling");
},prevAll:function(E){return c.dir(E,"previousSibling");
},siblings:function(E){return c.sibling(E.parentNode.firstChild,E);
},children:function(E){return c.sibling(E.firstChild);
},contents:function(E){return c.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:c.makeArray(E.childNodes);
}},function(F,E){c.fn[F]=function(G){var H=c.map(this,E);
if(G&&typeof G=="string"){H=c.multiFilter(G,H);
}return this.pushStack(c.unique(H),F,G);
};
});
c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,E){c.fn[F]=function(K){var H=[],J=c(K);
for(var I=0,L=J.length;
I<L;
I++){var G=(I>0?this.clone(true):this).get();
c.fn[E].apply(c(J[I]),G);
H=H.concat(G);
}return this.pushStack(H,F,K);
};
});
c.each({removeAttr:function(E){c.attr(this,E,"");
if(this.nodeType==1){this.removeAttribute(E);
}},addClass:function(E){c.className.add(this,E);
},removeClass:function(E){c.className.remove(this,E);
},toggleClass:function(E,F){if(typeof F!=="boolean"){F=!c.className.has(this,E);
}c.className[F?"add":"remove"](this,E);
},remove:function(E){if(!E||c.filter(E,[this]).length){c("*",this).add([this]).each(function(){c.event.remove(this);
c.removeData(this);
});
if(this.parentNode){this.parentNode.removeChild(this);
}}},empty:function(){c(this).children().remove();
while(this.firstChild){this.removeChild(this.firstChild);
}}},function(F,E){c.fn[F]=function(){return this.each(E,arguments);
};
});
function B(F,E){return F[0]&&parseInt(c.curCSS(F[0],E,true),10)||0;
}var AB="jQuery"+x(),o=0,e={};
c.extend({cache:{},data:function(G,F,H){G=G==D?e:G;
var E=G[AB];
if(!E){E=G[AB]=++o;
}if(F&&!c.cache[E]){c.cache[E]={};
}if(H!==z){c.cache[E][F]=H;
}return F?c.cache[E][F]:E;
},removeData:function(G,F){G=G==D?e:G;
var E=G[AB];
if(F){if(c.cache[E]){delete c.cache[E][F];
F="";
for(F in c.cache[E]){break;
}if(!F){c.removeData(G);
}}}else{try{delete G[AB];
}catch(H){if(G.removeAttribute){G.removeAttribute(AB);
}}delete c.cache[E];
}},queue:function(G,F,E){if(G){F=(F||"fx")+"queue";
var H=c.data(G,F);
if(!H||c.isArray(E)){H=c.data(G,F,c.makeArray(E));
}else{if(E){H.push(E);
}}}return H;
},dequeue:function(E,H){var F=c.queue(E,H),G=F.shift();
if(!H||H==="fx"){G=F[0];
}if(G!==z){G.call(E);
}}});
c.fn.extend({data:function(F,H){var E=F.split(".");
E[1]=E[1]?"."+E[1]:"";
if(H===z){var G=this.triggerHandler("getData"+E[1]+"!",[E[0]]);
if(G===z&&this.length){G=c.data(this[0],F);
}return G===z&&E[1]?this.data(E[0]):G;
}else{return this.trigger("setData"+E[1]+"!",[E[0],H]).each(function(){c.data(this,F,H);
});
}},removeData:function(E){return this.each(function(){c.removeData(this,E);
});
},queue:function(F,E){if(typeof F!=="string"){E=F;
F="fx";
}if(E===z){return c.queue(this[0],F);
}return this.each(function(){var G=c.queue(this,F,E);
if(F=="fx"&&G.length==1){G[0].call(this);
}});
},dequeue:function(E){return this.each(function(){c.dequeue(this,E);
});
}});
(function(){var G=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,P=0,L=Object.prototype.toString;
var J=function(X,T,Y,AC){Y=Y||[];
T=T||document;
if(T.nodeType!==1&&T.nodeType!==9){return[];
}if(!X||typeof X!=="string"){return Y;
}var Z=[],V,AF,AI,AJ,AD,U,W=true;
G.lastIndex=0;
while((V=G.exec(X))!==null){Z.push(V[1]);
if(V[2]){U=RegExp.rightContext;
break;
}}if(Z.length>1&&Q.exec(X)){if(Z.length===2&&M.relative[Z[0]]){AF=N(Z[0]+Z[1],T);
}else{AF=M.relative[Z[0]]?[T]:J(Z.shift(),T);
while(Z.length){X=Z.shift();
if(M.relative[X]){X+=Z.shift();
}AF=N(X,AF);
}}}else{var AE=AC?{expr:Z.pop(),set:I(AC)}:J.find(Z.pop(),Z.length===1&&T.parentNode?T.parentNode:T,F(T));
AF=J.filter(AE.expr,AE.set);
if(Z.length>0){AI=I(AF);
}else{W=false;
}while(Z.length){var AH=Z.pop(),AG=AH;
if(!M.relative[AH]){AH="";
}else{AG=Z.pop();
}if(AG==null){AG=T;
}M.relative[AH](AI,AG,F(T));
}}if(!AI){AI=AF;
}if(!AI){throw"Syntax error, unrecognized expression: "+(AH||X);
}if(L.call(AI)==="[object Array]"){if(!W){Y.push.apply(Y,AI);
}else{if(T.nodeType===1){for(var AA=0;
AI[AA]!=null;
AA++){if(AI[AA]&&(AI[AA]===true||AI[AA].nodeType===1&&O(T,AI[AA]))){Y.push(AF[AA]);
}}}else{for(var AA=0;
AI[AA]!=null;
AA++){if(AI[AA]&&AI[AA].nodeType===1){Y.push(AF[AA]);
}}}}}else{I(AI,Y);
}if(U){J(U,T,Y,AC);
if(K){hasDuplicate=false;
Y.sort(K);
if(hasDuplicate){for(var AA=1;
AA<Y.length;
AA++){if(Y[AA]===Y[AA-1]){Y.splice(AA--,1);
}}}}}return Y;
};
J.matches=function(T,U){return J(T,null,null,U);
};
J.find=function(Z,AC,AA){var Y,W;
if(!Z){return[];
}for(var V=0,U=M.order.length;
V<U;
V++){var X=M.order[V],W;
if((W=M.match[X].exec(Z))){var T=RegExp.leftContext;
if(T.substr(T.length-1)!=="\\"){W[1]=(W[1]||"").replace(/\\/g,"");
Y=M.find[X](W,AC,AA);
if(Y!=null){Z=Z.replace(M.match[X],"");
break;
}}}}if(!Y){Y=AC.getElementsByTagName("*");
}return{set:Y,expr:Z};
};
J.filter=function(AD,AC,AG,V){var U=AD,AI=[],AA=AC,Y,AJ,Z=AC&&AC[0]&&F(AC[0]);
while(AD&&AC.length){for(var X in M.filter){if((Y=M.match[X].exec(AD))!=null){var T=M.filter[X],AH,AF;
AJ=false;
if(AA==AI){AI=[];
}if(M.preFilter[X]){Y=M.preFilter[X](Y,AA,AG,AI,V,Z);
if(!Y){AJ=AH=true;
}else{if(Y===true){continue;
}}}if(Y){for(var W=0;
(AF=AA[W])!=null;
W++){if(AF){AH=T(AF,Y,W,AA);
var AE=V^!!AH;
if(AG&&AH!=null){if(AE){AJ=true;
}else{AA[W]=false;
}}else{if(AE){AI.push(AF);
AJ=true;
}}}}}if(AH!==z){if(!AG){AA=AI;
}AD=AD.replace(M.match[X],"");
if(!AJ){return[];
}break;
}}}if(AD==U){if(AJ==null){throw"Syntax error, unrecognized expression: "+AD;
}else{break;
}}U=AD;
}return AA;
};
var M=J.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href");
}},relative:{"+":function(Z,AC,Y){var W=typeof AC==="string",AA=W&&!/\W/.test(AC),X=W&&!AA;
if(AA&&!Y){AC=AC.toUpperCase();
}for(var V=0,U=Z.length,T;
V<U;
V++){if((T=Z[V])){while((T=T.previousSibling)&&T.nodeType!==1){}Z[V]=X||T&&T.nodeName===AC?T||false:T===AC;
}}if(X){J.filter(AC,Z,true);
}},">":function(X,AA,Y){var V=typeof AA==="string";
if(V&&!/\W/.test(AA)){AA=Y?AA:AA.toUpperCase();
for(var T=0,Z=X.length;
T<Z;
T++){var W=X[T];
if(W){var U=W.parentNode;
X[T]=U.nodeName===AA?U:false;
}}}else{for(var T=0,Z=X.length;
T<Z;
T++){var W=X[T];
if(W){X[T]=V?W.parentNode:W.parentNode===AA;
}}if(V){J.filter(AA,X,true);
}}},"":function(U,Y,W){var T=P++,X=H;
if(!Y.match(/\W/)){var V=Y=W?Y:Y.toUpperCase();
X=E;
}X("parentNode",Y,T,U,V,W);
},"~":function(U,Y,W){var T=P++,X=H;
if(typeof Y==="string"&&!Y.match(/\W/)){var V=Y=W?Y:Y.toUpperCase();
X=E;
}X("previousSibling",Y,T,U,V,W);
}},find:{ID:function(W,T,U){if(typeof T.getElementById!=="undefined"&&!U){var V=T.getElementById(W[1]);
return V?[V]:[];
}},NAME:function(T,W,X){if(typeof W.getElementsByName!=="undefined"){var Z=[],V=W.getElementsByName(T[1]);
for(var U=0,Y=V.length;
U<Y;
U++){if(V[U].getAttribute("name")===T[1]){Z.push(V[U]);
}}return Z.length===0?null:Z;
}},TAG:function(T,U){return U.getElementsByTagName(T[1]);
}},preFilter:{CLASS:function(U,AA,T,Z,X,Y){U=" "+U[1].replace(/\\/g,"")+" ";
if(Y){return U;
}for(var V=0,W;
(W=AA[V])!=null;
V++){if(W){if(X^(W.className&&(" "+W.className+" ").indexOf(U)>=0)){if(!T){Z.push(W);
}}else{if(T){AA[V]=false;
}}}}return false;
},ID:function(T){return T[1].replace(/\\/g,"");
},TAG:function(T,V){for(var U=0;
V[U]===false;
U++){}return V[U]&&F(V[U])?T[1]:T[1].toUpperCase();
},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);
T[2]=(U[1]+(U[2]||1))-0;
T[3]=U[3]-0;
}T[0]=P++;
return T;
},ATTR:function(V,Z,T,Y,W,X){var U=V[1].replace(/\\/g,"");
if(!X&&M.attrMap[U]){V[1]=M.attrMap[U];
}if(V[2]==="~="){V[4]=" "+V[4]+" ";
}return V;
},PSEUDO:function(V,Y,T,X,W){if(V[1]==="not"){if(V[3].match(G).length>1||/^\w/.test(V[3])){V[3]=J(V[3],null,null,Y);
}else{var U=J.filter(V[3],Y,T,true^W);
if(!T){X.push.apply(X,U);
}return false;
}}else{if(M.match.POS.test(V[0])||M.match.CHILD.test(V[0])){return true;
}}return V;
},POS:function(T){T.unshift(true);
return T;
}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden";
},disabled:function(T){return T.disabled===true;
},checked:function(T){return T.checked===true;
},selected:function(T){T.parentNode.selectedIndex;
return T.selected===true;
},parent:function(T){return !!T.firstChild;
},empty:function(T){return !T.firstChild;
},has:function(U,T,V){return !!J(V[3],U).length;
},header:function(T){return/h\d/i.test(T.nodeName);
},text:function(T){return"text"===T.type;
},radio:function(T){return"radio"===T.type;
},checkbox:function(T){return"checkbox"===T.type;
},file:function(T){return"file"===T.type;
},password:function(T){return"password"===T.type;
},submit:function(T){return"submit"===T.type;
},image:function(T){return"image"===T.type;
},reset:function(T){return"reset"===T.type;
},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON";
},input:function(T){return/input|select|textarea|button/i.test(T.nodeName);
}},setFilters:{first:function(U,T){return T===0;
},last:function(T,W,V,U){return W===U.length-1;
},even:function(U,T){return T%2===0;
},odd:function(U,T){return T%2===1;
},lt:function(U,T,V){return T<V[3]-0;
},gt:function(U,T,V){return T>V[3]-0;
},nth:function(U,T,V){return V[3]-0==T;
},eq:function(U,T,V){return V[3]-0==T;
}},filter:{PSEUDO:function(X,T,U,Y){var AA=T[1],V=M.filters[AA];
if(V){return V(X,U,T,Y);
}else{if(AA==="contains"){return(X.textContent||X.innerText||"").indexOf(T[3])>=0;
}else{if(AA==="not"){var W=T[3];
for(var U=0,Z=W.length;
U<Z;
U++){if(W[U]===X){return false;
}}return true;
}}}},CHILD:function(AD,V){var Y=V[1],T=AD;
switch(Y){case"only":case"first":while(T=T.previousSibling){if(T.nodeType===1){return false;
}}if(Y=="first"){return true;
}T=AD;
case"last":while(T=T.nextSibling){if(T.nodeType===1){return false;
}}return true;
case"nth":var U=V[2],AC=V[3];
if(U==1&&AC==0){return true;
}var X=V[0],AA=AD.parentNode;
if(AA&&(AA.sizcache!==X||!AD.nodeIndex)){var W=0;
for(T=AA.firstChild;
T;
T=T.nextSibling){if(T.nodeType===1){T.nodeIndex=++W;
}}AA.sizcache=X;
}var Z=AD.nodeIndex-AC;
if(U==0){return Z==0;
}else{return(Z%U==0&&Z/U>=0);
}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T;
},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T;
},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1;
},ATTR:function(W,U){var T=U[1],Y=M.attrHandle[T]?M.attrHandle[T](W):W[T]!=null?W[T]:W.getAttribute(T),X=Y+"",V=U[2],Z=U[4];
return Y==null?V==="!=":V==="="?X===Z:V==="*="?X.indexOf(Z)>=0:V==="~="?(" "+X+" ").indexOf(Z)>=0:!Z?X&&Y!==false:V==="!="?X!=Z:V==="^="?X.indexOf(Z)===0:V==="$="?X.substr(X.length-Z.length)===Z:V==="|="?X===Z||X.substr(0,Z.length+1)===Z+"-":false;
},POS:function(V,Y,T,W){var X=Y[2],U=M.setFilters[X];
if(U){return U(V,T,Y,W);
}}}};
var Q=M.match.POS;
for(var S in M.match){M.match[S]=RegExp(M.match[S].source+/(?![^\[]*\])(?![^\(]*\))/.source);
}var I=function(U,T){U=Array.prototype.slice.call(U);
if(T){T.push.apply(T,U);
return T;
}return U;
};
try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(R){I=function(V,U){var X=U||[];
if(L.call(V)==="[object Array]"){Array.prototype.push.apply(X,V);
}else{if(typeof V.length==="number"){for(var T=0,W=V.length;
T<W;
T++){X.push(V[T]);
}}else{for(var T=0;
V[T];
T++){X.push(V[T]);
}}}return X;
};
}var K;
if(document.documentElement.compareDocumentPosition){K=function(T,V){var U=T.compareDocumentPosition(V)&4?-1:T===V?0:1;
if(U===0){hasDuplicate=true;
}return U;
};
}else{if("sourceIndex" in document.documentElement){K=function(T,V){var U=T.sourceIndex-V.sourceIndex;
if(U===0){hasDuplicate=true;
}return U;
};
}else{if(document.createRange){K=function(U,X){var T=U.ownerDocument.createRange(),W=X.ownerDocument.createRange();
T.selectNode(U);
T.collapse(true);
W.selectNode(X);
W.collapse(true);
var V=T.compareBoundaryPoints(Range.START_TO_END,W);
if(V===0){hasDuplicate=true;
}return V;
};
}}}(function(){var T=document.createElement("form"),U="script"+(new Date).getTime();
T.innerHTML="<input name='"+U+"'/>";
var V=document.documentElement;
V.insertBefore(T,V.firstChild);
if(!!document.getElementById(U)){M.find.ID=function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var Z=X.getElementById(W[1]);
return Z?Z.id===W[1]||typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id").nodeValue===W[1]?[Z]:z:[];
}};
M.filter.ID=function(X,Y){var W=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");
return X.nodeType===1&&W&&W.nodeValue===Y;
};
}V.removeChild(T);
})();
(function(){var T=document.createElement("div");
T.appendChild(document.createComment(""));
if(T.getElementsByTagName("*").length>0){M.find.TAG=function(X,W){var V=W.getElementsByTagName(X[1]);
if(X[1]==="*"){var U=[];
for(var Y=0;
V[Y];
Y++){if(V[Y].nodeType===1){U.push(V[Y]);
}}V=U;
}return V;
};
}T.innerHTML="<a href='#'></a>";
if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){M.attrHandle.href=function(U){return U.getAttribute("href",2);
};
}})();
if(document.querySelectorAll){(function(){var T=J,U=document.createElement("div");
U.innerHTML="<p class='TEST'></p>";
if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return ;
}J=function(W,V,Y,Z){V=V||document;
if(!Z&&V.nodeType===9&&!F(V)){try{return I(V.querySelectorAll(W),Y);
}catch(X){}}return T(W,V,Y,Z);
};
J.find=T.find;
J.filter=T.filter;
J.selectors=T.selectors;
J.matches=T.matches;
})();
}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");
T.innerHTML="<div class='test e'></div><div class='test'></div>";
if(T.getElementsByClassName("e").length===0){return ;
}T.lastChild.className="e";
if(T.getElementsByClassName("e").length===1){return ;
}M.order.splice(1,0,"CLASS");
M.find.CLASS=function(V,W,U){if(typeof W.getElementsByClassName!=="undefined"&&!U){return W.getElementsByClassName(V[1]);
}};
})();
}function E(T,Y,X,AD,Z,AC){var AA=T=="previousSibling"&&!AC;
for(var V=0,U=AD.length;
V<U;
V++){var AE=AD[V];
if(AE){if(AA&&AE.nodeType===1){AE.sizcache=X;
AE.sizset=V;
}AE=AE[T];
var W=false;
while(AE){if(AE.sizcache===X){W=AD[AE.sizset];
break;
}if(AE.nodeType===1&&!AC){AE.sizcache=X;
AE.sizset=V;
}if(AE.nodeName===Y){W=AE;
break;
}AE=AE[T];
}AD[V]=W;
}}}function H(T,Y,X,AD,Z,AC){var AA=T=="previousSibling"&&!AC;
for(var V=0,U=AD.length;
V<U;
V++){var AE=AD[V];
if(AE){if(AA&&AE.nodeType===1){AE.sizcache=X;
AE.sizset=V;
}AE=AE[T];
var W=false;
while(AE){if(AE.sizcache===X){W=AD[AE.sizset];
break;
}if(AE.nodeType===1){if(!AC){AE.sizcache=X;
AE.sizset=V;
}if(typeof Y!=="string"){if(AE===Y){W=true;
break;
}}else{if(J.filter(Y,[AE]).length>0){W=AE;
break;
}}}AE=AE[T];
}AD[V]=W;
}}}var O=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16;
}:function(U,T){return U!==T&&(U.contains?U.contains(T):true);
};
var F=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&F(T.ownerDocument);
};
var N=function(Z,X){var U=[],V="",W,T=X.nodeType?[X]:X;
while((W=M.match.PSEUDO.exec(Z))){V+=W[0];
Z=Z.replace(M.match.PSEUDO,"");
}Z=M.relative[Z]?Z+"*":Z;
for(var Y=0,AA=T.length;
Y<AA;
Y++){J(Z,T[Y],U);
}return J.filter(V,U);
};
c.find=J;
c.filter=J.filter;
c.expr=J.selectors;
c.expr[":"]=c.expr.filters;
J.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0;
};
J.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0;
};
J.selectors.filters.animated=function(T){return c.grep(c.timers,function(U){return T===U.elem;
}).length;
};
c.multiFilter=function(U,V,T){if(T){U=":not("+U+")";
}return J.matches(U,V);
};
c.dir=function(T,W){var V=[],U=T[W];
while(U&&U!=document){if(U.nodeType==1){V.push(U);
}U=U[W];
}return V;
};
c.nth=function(V,W,T,U){W=W||1;
var X=0;
for(;
V;
V=V[T]){if(V.nodeType==1&&++X==W){break;
}}return V;
};
c.sibling=function(U,T){var V=[];
for(;
U;
U=U.nextSibling){if(U.nodeType==1&&U!=T){V.push(U);
}}return V;
};
return ;
D.Sizzle=J;
})();
c.event={add:function(I,F,H,E){if(I.nodeType==3||I.nodeType==8){return ;
}if(I.setInterval&&I!=D){I=D;
}if(!H.guid){H.guid=this.guid++;
}if(E!==z){var G=H;
H=this.proxy(G);
H.data=E;
}var K=c.data(I,"events")||c.data(I,"events",{}),J=c.data(I,"handle")||c.data(I,"handle",function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(arguments.callee.elem,arguments):z;
});
J.elem=I;
c.each(F.split(/\s+/),function(L,M){var N=M.split(".");
M=N.shift();
H.type=N.slice().sort().join(".");
var O=K[M];
if(c.event.specialAll[M]){c.event.specialAll[M].setup.call(I,E,N);
}if(!O){O=K[M]={};
if(!c.event.special[M]||c.event.special[M].setup.call(I,E,N)===false){if(I.addEventListener){I.addEventListener(M,J,false);
}else{if(I.attachEvent){I.attachEvent("on"+M,J);
}}}}O[H.guid]=H;
c.event.global[M]=true;
});
I=null;
},guid:1,global:{},remove:function(L,G,J){if(L.nodeType==3||L.nodeType==8){return ;
}var F=c.data(L,"events"),K,I;
if(F){if(G===z||(typeof G==="string"&&G.charAt(0)==".")){for(var H in F){this.remove(L,H+(G||""));
}}else{if(G.type){J=G.handler;
G=G.type;
}c.each(G.split(/\s+/),function(M,O){var Q=O.split(".");
O=Q.shift();
var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");
if(F[O]){if(J){delete F[O][J.guid];
}else{for(var P in F[O]){if(N.test(F[O][P].type)){delete F[O][P];
}}}if(c.event.specialAll[O]){c.event.specialAll[O].teardown.call(L,Q);
}for(K in F[O]){break;
}if(!K){if(!c.event.special[O]||c.event.special[O].teardown.call(L,Q)===false){if(L.removeEventListener){L.removeEventListener(O,c.data(L,"handle"),false);
}else{if(L.detachEvent){L.detachEvent("on"+O,c.data(L,"handle"));
}}}K=null;
delete F[O];
}}});
}for(K in F){break;
}if(!K){var E=c.data(L,"handle");
if(E){E.elem=null;
}c.removeData(L,"events");
c.removeData(L,"handle");
}}},trigger:function(H,L,G,J){var F=H.type||H;
if(!J){H=typeof H==="object"?H[AB]?H:c.extend(c.Event(F),H):c.Event(F);
if(F.indexOf("!")>=0){H.type=F=F.slice(0,-1);
H.exclusive=true;
}if(!G){H.stopPropagation();
if(this.global[F]){c.each(c.cache,function(){if(this.events&&this.events[F]){c.event.trigger(H,L,this.handle.elem);
}});
}}if(!G||G.nodeType==3||G.nodeType==8){return z;
}H.result=z;
H.target=G;
L=c.makeArray(L);
L.unshift(H);
}H.currentTarget=G;
var I=c.data(G,"handle");
if(I){I.apply(G,L);
}if((!G[F]||(c.nodeName(G,"a")&&F=="click"))&&G["on"+F]&&G["on"+F].apply(G,L)===false){H.result=false;
}if(!J&&G[F]&&!H.isDefaultPrevented()&&!(c.nodeName(G,"a")&&F=="click")){this.triggered=true;
try{G[F]();
}catch(E){}}this.triggered=false;
if(!H.isPropagationStopped()){var K=G.parentNode||G.ownerDocument;
if(K){c.event.trigger(H,L,K,true);
}}},handle:function(L){var J,I;
L=arguments[0]=c.event.fix(L||D.event);
L.currentTarget=this;
var F=L.type.split(".");
L.type=F.shift();
J=!F.length&&!L.exclusive;
var H=RegExp("(^|\\.)"+F.slice().sort().join(".*\\.")+"(\\.|$)");
I=(c.data(this,"events")||{})[L.type];
for(var E in I){var G=I[E];
if(J||H.test(G.type)){L.handler=G;
L.data=G.data;
var K=G.apply(this,arguments);
if(K!==z){L.result=K;
if(K===false){L.preventDefault();
L.stopPropagation();
}}if(L.isImmediatePropagationStopped()){break;
}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(I){if(I[AB]){return I;
}var G=I;
I=c.Event(G);
for(var H=this.props.length,F;
H;
){F=this.props[--H];
I[F]=G[F];
}if(!I.target){I.target=I.srcElement||document;
}if(I.target.nodeType==3){I.target=I.target.parentNode;
}if(!I.relatedTarget&&I.fromElement){I.relatedTarget=I.fromElement==I.target?I.toElement:I.fromElement;
}if(I.pageX==null&&I.clientX!=null){var J=document.documentElement,E=document.body;
I.pageX=I.clientX+(J&&J.scrollLeft||E&&E.scrollLeft||0)-(J.clientLeft||0);
I.pageY=I.clientY+(J&&J.scrollTop||E&&E.scrollTop||0)-(J.clientTop||0);
}if(!I.which&&((I.charCode||I.charCode===0)?I.charCode:I.keyCode)){I.which=I.charCode||I.keyCode;
}if(!I.metaKey&&I.ctrlKey){I.metaKey=I.ctrlKey;
}if(!I.which&&I.button){I.which=(I.button&1?1:(I.button&2?3:(I.button&4?2:0)));
}return I;
},proxy:function(E,F){F=F||function(){return E.apply(this,arguments);
};
F.guid=E.guid=E.guid||F.guid||this.guid++;
return F;
},special:{ready:{setup:g,teardown:function(){}}},specialAll:{live:{setup:function(F,E){c.event.add(this,E[0],v);
},teardown:function(E){if(E.length){var F=0,G=RegExp("(^|\\.)"+E[0]+"(\\.|$)");
c.each((c.data(this,"events").live||{}),function(){if(G.test(this.type)){F++;
}});
if(F<1){c.event.remove(this,E[0],v);
}}}}}};
c.Event=function(E){if(!this.preventDefault){return new c.Event(E);
}if(E&&E.type){this.originalEvent=E;
this.type=E.type;
}else{this.type=E;
}this.timeStamp=x();
this[AB]=true;
};
function C(){return false;
}function m(){return true;
}c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=m;
var E=this.originalEvent;
if(!E){return ;
}if(E.preventDefault){E.preventDefault();
}E.returnValue=false;
},stopPropagation:function(){this.isPropagationStopped=m;
var E=this.originalEvent;
if(!E){return ;
}if(E.stopPropagation){E.stopPropagation();
}E.cancelBubble=true;
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=m;
this.stopPropagation();
},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};
var t=function(G){var F=G.relatedTarget;
while(F&&F!=this){try{F=F.parentNode;
}catch(E){F=this;
}}if(F!=this){G.type=G.data;
c.event.handle.apply(this,arguments);
}};
c.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(E,F){c.event.special[F]={setup:function(){c.event.add(this,E,t,F);
},teardown:function(){c.event.remove(this,E,t);
}};
});
c.fn.extend({bind:function(G,E,F){return G=="unload"?this.one(G,E,F):this.each(function(){c.event.add(this,G,F||E,F&&E);
});
},one:function(H,E,G){var F=c.event.proxy(G||E,function(I){c(this).unbind(I,F);
return(G||E).apply(this,arguments);
});
return this.each(function(){c.event.add(this,H,F,G&&E);
});
},unbind:function(E,F){return this.each(function(){c.event.remove(this,E,F);
});
},trigger:function(F,E){return this.each(function(){c.event.trigger(F,E,this);
});
},triggerHandler:function(F,E){if(this[0]){var G=c.Event(F);
G.preventDefault();
G.stopPropagation();
c.event.trigger(G,E,this[0]);
return G.result;
}},toggle:function(E){var F=arguments,G=1;
while(G<F.length){c.event.proxy(E,F[G++]);
}return this.click(c.event.proxy(E,function(H){this.lastToggle=(this.lastToggle||0)%G;
H.preventDefault();
return F[this.lastToggle++].apply(this,arguments)||false;
}));
},hover:function(F,E){return this.mouseenter(F).mouseleave(E);
},ready:function(E){g();
if(c.isReady){E.call(document,c);
}else{c.readyList.push(E);
}return this;
},live:function(E,G){var F=c.event.proxy(G);
F.guid+=this.selector+E;
c(document).bind(A(E,this.selector),this.selector,F);
return this;
},die:function(E,F){c(document).unbind(A(E,this.selector),F?{guid:F.guid+this.selector+E}:null);
return this;
}});
function v(E){var F=RegExp("(^|\\.)"+E.type+"(\\.|$)"),H=true,G=[];
c.each(c.data(this,"events").live||[],function(K,I){if(F.test(I.type)){var J=c(E.target).closest(I.data)[0];
if(J){G.push({elem:J,fn:I});
}}});
G.sort(function(J,I){return c.data(J.elem,"closest")-c.data(I.elem,"closest");
});
c.each(G,function(){if(this.fn.call(this.elem,E,this.fn.data)===false){return(H=false);
}});
return H;
}function A(E,F){return["live",E,F.replace(/\./g,"`").replace(/ /g,"|")].join(".");
}c.extend({isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;
if(c.readyList){c.each(c.readyList,function(){this.call(document,c);
});
c.readyList=null;
}c(document).triggerHandler("ready");
}}});
var q=false;
function g(){if(q){return ;
}q=true;
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
c.ready();
},false);
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
c.ready();
}});
if(document.documentElement.doScroll&&D==D.top){(function(){if(c.isReady){return ;
}try{document.documentElement.doScroll("left");
}catch(E){setTimeout(arguments.callee,0);
return ;
}c.ready();
})();
}}}c.event.add(D,"load",c.ready);
}c.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(E,F){c.fn[F]=function(G){return G?this.bind(F,G):this.trigger(F);
};
});
c(D).bind("unload",function(){for(var E in c.cache){if(E!=1&&c.cache[E].handle){c.event.remove(c.cache[E].handle.elem);
}}});
(function(){c.support={};
var F=document.documentElement,G=document.createElement("script"),E=document.createElement("div"),K="script"+(new Date).getTime();
E.style.display="none";
E.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var H=E.getElementsByTagName("*"),J=E.getElementsByTagName("a")[0];
if(!H||!H.length||!J){return ;
}c.support={leadingWhitespace:E.firstChild.nodeType==3,tbody:!E.getElementsByTagName("tbody").length,objectAll:!!E.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!E.getElementsByTagName("link").length,style:/red/.test(J.getAttribute("style")),hrefNormalized:J.getAttribute("href")==="/a",opacity:J.style.opacity==="0.5",cssFloat:!!J.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
G.type="text/javascript";
try{G.appendChild(document.createTextNode("window."+K+"=1;"));
}catch(I){}F.insertBefore(G,F.firstChild);
if(D[K]){c.support.scriptEval=true;
delete D[K];
}F.removeChild(G);
if(E.attachEvent&&E.fireEvent){E.attachEvent("onclick",function(){c.support.noCloneEvent=false;
E.detachEvent("onclick",arguments.callee);
});
E.cloneNode(true).fireEvent("onclick");
}c(function(){var L=document.createElement("div");
L.style.width=L.style.paddingLeft="1px";
document.body.appendChild(L);
c.boxModel=c.support.boxModel=L.offsetWidth===2;
document.body.removeChild(L).style.display="none";
});
})();
var p=c.support.cssFloat?"cssFloat":"styleFloat";
c.props={"for":"htmlFor","class":"className","float":p,cssFloat:p,styleFloat:p,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
c.fn.extend({_load:c.fn.load,load:function(G,K,F){if(typeof G!=="string"){return this._load(G);
}var I=G.indexOf(" ");
if(I>=0){var J=G.slice(I,G.length);
G=G.slice(0,I);
}var H="GET";
if(K){if(c.isFunction(K)){F=K;
K=null;
}else{if(typeof K==="object"){K=c.param(K);
H="POST";
}}}var E=this;
c.ajax({url:G,type:H,dataType:"html",data:K,complete:function(L,M){if(M=="success"||M=="notmodified"){E.html(J?c("<div/>").append(L.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(J):L.responseText);
}if(F){E.each(F,[L.responseText,M,L]);
}}});
return this;
},serialize:function(){return c.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this;
}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));
}).map(function(F,G){var E=c(this).val();
return E==null?null:c.isArray(E)?c.map(E,function(I,H){return{name:G.name,value:I};
}):{name:G.name,value:E};
}).get();
}});
c.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(F,E){c.fn[E]=function(G){return this.bind(E,G);
};
});
var i=x();
c.extend({get:function(F,H,E,G){if(c.isFunction(H)){E=H;
H=null;
}return c.ajax({type:"GET",url:F,data:H,success:E,dataType:G});
},getScript:function(F,E){return c.get(F,null,E,"script");
},getJSON:function(F,G,E){return c.get(F,G,E,"json");
},post:function(F,H,E,G){if(c.isFunction(H)){E=H;
H={};
}return c.ajax({type:"POST",url:F,data:H,success:E,dataType:G});
},ajaxSetup:function(E){c.extend(c.ajaxSettings,E);
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return D.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(Q){Q=c.extend(true,Q,c.extend(true,{},c.ajaxSettings,Q));
var H,J=/=\?(&|$)/g,V,G,K=Q.type.toUpperCase();
if(Q.data&&Q.processData&&typeof Q.data!=="string"){Q.data=c.param(Q.data);
}if(Q.dataType=="jsonp"){if(K=="GET"){if(!Q.url.match(J)){Q.url+=(Q.url.match(/\?/)?"&":"?")+(Q.jsonp||"callback")+"=?";
}}else{if(!Q.data||!Q.data.match(J)){Q.data=(Q.data?Q.data+"&":"")+(Q.jsonp||"callback")+"=?";
}}Q.dataType="json";
}if(Q.dataType=="json"&&(Q.data&&Q.data.match(J)||Q.url.match(J))){H="jsonp"+i++;
if(Q.data){Q.data=(Q.data+"").replace(J,"="+H+"$1");
}Q.url=Q.url.replace(J,"="+H+"$1");
Q.dataType="script";
D[H]=function(X){G=X;
M();
P();
D[H]=z;
try{delete D[H];
}catch(Y){}if(L){L.removeChild(E);
}};
}if(Q.dataType=="script"&&Q.cache==null){Q.cache=false;
}if(Q.cache===false&&K=="GET"){var I=x();
var F=Q.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+I+"$2");
Q.url=F+((F==Q.url)?(Q.url.match(/\?/)?"&":"?")+"_="+I:"");
}if(Q.data&&K=="GET"){Q.url+=(Q.url.match(/\?/)?"&":"?")+Q.data;
Q.data=null;
}if(Q.global&&!c.active++){c.event.trigger("ajaxStart");
}var U=/^(\w+:)?\/\/([^\/?#]+)/.exec(Q.url);
if(Q.dataType=="script"&&K=="GET"&&U&&(U[1]&&U[1]!=location.protocol||U[2]!=location.host)){var L=document.getElementsByTagName("head")[0];
var E=document.createElement("script");
E.src=Q.url;
if(Q.scriptCharset){E.charset=Q.scriptCharset;
}if(!H){var S=false;
E.onload=E.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){S=true;
M();
P();
E.onload=E.onreadystatechange=null;
L.removeChild(E);
}};
}L.appendChild(E);
return z;
}var O=false;
var N=Q.xhr();
if(Q.username){N.open(K,Q.url,Q.async,Q.username,Q.password);
}else{N.open(K,Q.url,Q.async);
}try{if(Q.data){N.setRequestHeader("Content-Type",Q.contentType);
}if(Q.ifModified){N.setRequestHeader("If-Modified-Since",c.lastModified[Q.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}N.setRequestHeader("X-Requested-With","XMLHttpRequest");
N.setRequestHeader("Accept",Q.dataType&&Q.accepts[Q.dataType]?Q.accepts[Q.dataType]+", */*":Q.accepts._default);
}catch(W){}if(Q.beforeSend&&Q.beforeSend(N,Q)===false){if(Q.global&&!--c.active){c.event.trigger("ajaxStop");
}N.abort();
return false;
}if(Q.global){c.event.trigger("ajaxSend",[N,Q]);
}var R=function(X){if(N.readyState==0){if(T){clearInterval(T);
T=null;
if(Q.global&&!--c.active){c.event.trigger("ajaxStop");
}}}else{if(!O&&N&&(N.readyState==4||X=="timeout")){O=true;
if(T){clearInterval(T);
T=null;
}V=X=="timeout"?"timeout":!c.httpSuccess(N)?"error":Q.ifModified&&c.httpNotModified(N,Q.url)?"notmodified":"success";
if(V=="success"){try{G=c.httpData(N,Q.dataType,Q);
}catch(Z){V="parsererror";
}}if(V=="success"){var Y;
try{Y=N.getResponseHeader("Last-Modified");
}catch(Z){}if(Q.ifModified&&Y){c.lastModified[Q.url]=Y;
}if(!H){M();
}}else{c.handleError(Q,N,V);
}P();
if(X){N.abort();
}if(Q.async){N=null;
}}}};
if(Q.async){var T=setInterval(R,13);
if(Q.timeout>0){setTimeout(function(){if(N&&!O){R("timeout");
}},Q.timeout);
}}try{N.send(Q.data);
}catch(W){c.handleError(Q,N,null,W);
}if(!Q.async){R();
}function M(){if(Q.success){Q.success(G,V);
}if(Q.global){c.event.trigger("ajaxSuccess",[N,Q]);
}}function P(){if(Q.complete){Q.complete(N,V);
}if(Q.global){c.event.trigger("ajaxComplete",[N,Q]);
}if(Q.global&&!--c.active){c.event.trigger("ajaxStop");
}}return N;
},handleError:function(G,E,F,H){if(G.error){G.error(E,F,H);
}if(G.global){c.event.trigger("ajaxError",[E,G,H]);
}},active:0,httpSuccess:function(E){try{return !E.status&&location.protocol=="file:"||(E.status>=200&&E.status<300)||E.status==304||E.status==1223;
}catch(F){}return false;
},httpNotModified:function(H,F){try{var E=H.getResponseHeader("Last-Modified");
return H.status==304||E==c.lastModified[F];
}catch(G){}return false;
},httpData:function(F,I,H){var G=F.getResponseHeader("content-type"),E=I=="xml"||!I&&G&&G.indexOf("xml")>=0,J=E?F.responseXML:F.responseText;
if(E&&J.documentElement.tagName=="parsererror"){throw"parsererror";
}if(H&&H.dataFilter){J=H.dataFilter(J,I);
}if(typeof J==="string"){if(I=="script"){c.globalEval(J);
}if(I=="json"){J=D["eval"]("("+J+")");
}}return J;
},param:function(F){var H=[];
function E(I,J){H[H.length]=encodeURIComponent(I)+"="+encodeURIComponent(J);
}if(c.isArray(F)||F.jquery){c.each(F,function(){E(this.name,this.value);
});
}else{for(var G in F){if(c.isArray(F[G])){c.each(F[G],function(){E(G,this);
});
}else{E(G,c.isFunction(F[G])?F[G]():F[G]);
}}}return H.join("&").replace(/%20/g,"+");
}});
var a={},b,w=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function l(G,F){var E={};
c.each(w.concat.apply([],w.slice(0,F)),function(){E[this]=G;
});
return E;
}c.fn.extend({show:function(J,F){if(J){return this.animate(l("show",3),J,F);
}else{for(var G=0,L=this.length;
G<L;
G++){var I=c.data(this[G],"olddisplay");
this[G].style.display=I||"";
if(c.css(this[G],"display")==="none"){var E=this[G].tagName,K;
if(a[E]){K=a[E];
}else{var H=c("<"+E+" />").appendTo("body");
K=H.css("display");
if(K==="none"){K="block";
}H.remove();
a[E]=K;
}c.data(this[G],"olddisplay",K);
}}for(var G=0,L=this.length;
G<L;
G++){this[G].style.display=c.data(this[G],"olddisplay")||"";
}return this;
}},hide:function(I,E){if(I){return this.animate(l("hide",3),I,E);
}else{for(var H=0,G=this.length;
H<G;
H++){var F=c.data(this[H],"olddisplay");
if(!F&&F!=="none"){c.data(this[H],"olddisplay",c.css(this[H],"display"));
}}for(var H=0,G=this.length;
H<G;
H++){this[H].style.display="none";
}return this;
}},_toggle:c.fn.toggle,toggle:function(E,G){var F=typeof E==="boolean";
return c.isFunction(E)&&c.isFunction(G)?this._toggle.apply(this,arguments):E==null||F?this.each(function(){var H=F?E:c(this).is(":hidden");
c(this)[H?"show":"hide"]();
}):this.animate(l("toggle",3),E,G);
},fadeTo:function(F,E,G){return this.animate({opacity:E},F,G);
},animate:function(E,G,I,H){var F=c.speed(G,I,H);
return this[F.queue===false?"each":"queue"](function(){var M=c.extend({},F),K,J=this.nodeType==1&&c(this).is(":hidden"),L=this;
for(K in E){if(E[K]=="hide"&&J||E[K]=="show"&&!J){return M.complete.call(this);
}if((K=="height"||K=="width")&&this.style){M.display=c.css(this,"display");
M.overflow=this.style.overflow;
}}if(M.overflow!=null){this.style.overflow="hidden";
}M.curAnim=c.extend({},E);
c.each(E,function(O,S){var R=new c.fx(L,M,O);
if(/toggle|show|hide/.test(S)){R[S=="toggle"?J?"show":"hide":S](E);
}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;
if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";
if(P!="px"){L.style[O]=(N||1)+P;
T=((N||1)/R.cur(true))*T;
L.style[O]=T+P;
}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T;
}R.custom(T,N,P);
}else{R.custom(T,S,"");
}}});
return true;
});
},stop:function(G,F){var E=c.timers;
if(G){this.queue([]);
}this.each(function(){for(var H=E.length-1;
H>=0;
H--){if(E[H].elem==this){if(F){E[H](true);
}E.splice(H,1);
}}});
if(!F){this.dequeue();
}return this;
}});
c.each({slideDown:l("show",1),slideUp:l("hide",1),slideToggle:l("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,E){c.fn[F]=function(G,H){return this.animate(E,G,H);
};
});
c.extend({speed:function(H,E,G){var F=typeof H==="object"?H:{complete:G||!G&&E||c.isFunction(H)&&H,duration:H,easing:G&&E||E&&!c.isFunction(E)&&E};
F.duration=c.fx.off?0:typeof F.duration==="number"?F.duration:c.fx.speeds[F.duration]||c.fx.speeds._default;
F.old=F.complete;
F.complete=function(){if(F.queue!==false){c(this).dequeue();
}if(c.isFunction(F.old)){F.old.call(this);
}};
return F;
},easing:{linear:function(H,E,F,G){return F+G*H;
},swing:function(H,E,F,G){return((-Math.cos(H*Math.PI)/2)+0.5)*G+F;
}},timers:[],fx:function(G,F,E){this.options=F;
this.elem=G;
this.prop=E;
if(!F.orig){F.orig={};
}}});
c.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);
}(c.fx.step[this.prop]||c.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";
}},cur:function(E){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];
}var F=parseFloat(c.css(this.elem,this.prop,E));
return F&&F>-10000?F:parseFloat(c.curCSS(this.elem,this.prop))||0;
},custom:function(E,I,H){this.startTime=x();
this.start=E;
this.end=I;
this.unit=H||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var F=this;
function G(J){return F.step(J);
}G.elem=this.elem;
if(G()&&c.timers.push(G)&&!b){b=setInterval(function(){var J=c.timers;
for(var K=0;
K<J.length;
K++){if(!J[K]()){J.splice(K--,1);
}}if(!J.length){clearInterval(b);
b=z;
}},13);
}},show:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
c(this.elem).show();
},hide:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0);
},step:function(I){var H=x();
if(I||H>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var F=true;
for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){F=false;
}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(c.css(this.elem,"display")=="none"){this.elem.style.display="block";
}}if(this.options.hide){c(this.elem).hide();
}if(this.options.hide||this.options.show){for(var J in this.options.curAnim){c.attr(this.elem.style,J,this.options.orig[J]);
}}this.options.complete.call(this.elem);
}return false;
}else{var E=H-this.startTime;
this.state=E/this.options.duration;
this.pos=c.easing[this.options.easing||(c.easing.swing?"swing":"linear")](this.state,E,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);
this.update();
}return true;
}};
c.extend(c.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){c.attr(E.elem.style,"opacity",E.now);
},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit;
}else{E.elem[E.prop]=E.now;
}}}});
if(document.documentElement.getBoundingClientRect){c.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return c.offset.bodyOffset(this[0]);
}var F=this[0].getBoundingClientRect(),J=this[0].ownerDocument,L=J.body,I=J.documentElement,E=I.clientTop||L.clientTop||0,K=I.clientLeft||L.clientLeft||0,H=F.top+(self.pageYOffset||c.boxModel&&I.scrollTop||L.scrollTop)-E,G=F.left+(self.pageXOffset||c.boxModel&&I.scrollLeft||L.scrollLeft)-K;
return{top:H,left:G};
};
}else{c.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return c.offset.bodyOffset(this[0]);
}c.offset.initialized||c.offset.initialize();
var N=this[0],K=N.offsetParent,J=N,H=N.ownerDocument,F,L=H.documentElement,O=H.body,E=H.defaultView,I=E.getComputedStyle(N,null),G=N.offsetTop,M=N.offsetLeft;
while((N=N.parentNode)&&N!==O&&N!==L){F=E.getComputedStyle(N,null);
G-=N.scrollTop,M-=N.scrollLeft;
if(N===K){G+=N.offsetTop,M+=N.offsetLeft;
if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(N.tagName))){G+=parseInt(F.borderTopWidth,10)||0,M+=parseInt(F.borderLeftWidth,10)||0;
}J=K,K=N.offsetParent;
}if(c.offset.subtractsBorderForOverflowNotVisible&&F.overflow!=="visible"){G+=parseInt(F.borderTopWidth,10)||0,M+=parseInt(F.borderLeftWidth,10)||0;
}I=F;
}if(I.position==="relative"||I.position==="static"){G+=O.offsetTop,M+=O.offsetLeft;
}if(I.position==="fixed"){G+=Math.max(L.scrollTop,O.scrollTop),M+=Math.max(L.scrollLeft,O.scrollLeft);
}return{top:G,left:M};
};
}c.offset={initialize:function(){if(this.initialized){return ;
}var F=document.body,J=document.createElement("div"),L,K,H,M,G,I,N=F.style.marginTop,E='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
G={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
for(I in G){J.style[I]=G[I];
}J.innerHTML=E;
F.insertBefore(J,F.firstChild);
L=J.firstChild,K=L.firstChild,M=L.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=(K.offsetTop!==5);
this.doesAddBorderForTableAndCells=(M.offsetTop===5);
L.style.overflow="hidden",L.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(K.offsetTop===-5);
F.style.marginTop="1px";
this.doesNotIncludeMarginInBodyOffset=(F.offsetTop===0);
F.style.marginTop=N;
F.removeChild(J);
this.initialized=true;
},bodyOffset:function(F){c.offset.initialized||c.offset.initialize();
var E=F.offsetTop,G=F.offsetLeft;
if(c.offset.doesNotIncludeMarginInBodyOffset){E+=parseInt(c.curCSS(F,"marginTop",true),10)||0,G+=parseInt(c.curCSS(F,"marginLeft",true),10)||0;
}return{top:E,left:G};
}};
c.fn.extend({position:function(){var J=0,I=0,G;
if(this[0]){var H=this.offsetParent(),F=this.offset(),E=/^body|html$/i.test(H[0].tagName)?{top:0,left:0}:H.offset();
F.top-=B(this,"marginTop");
F.left-=B(this,"marginLeft");
E.top+=B(H,"borderTopWidth");
E.left+=B(H,"borderLeftWidth");
G={top:F.top-E.top,left:F.left-E.left};
}return G;
},offsetParent:function(){var E=this[0].offsetParent||document.body;
while(E&&(!/^body|html$/i.test(E.tagName)&&c.css(E,"position")=="static")){E=E.offsetParent;
}return c(E);
}});
c.each(["Left","Top"],function(G,F){var E="scroll"+F;
c.fn[E]=function(H){if(!this[0]){return null;
}return H!==z?this.each(function(){this==D||this==document?D.scrollTo(!G?H:c(D).scrollLeft(),G?H:c(D).scrollTop()):this[E]=H;
}):this[0]==D||this[0]==document?self[G?"pageYOffset":"pageXOffset"]||c.boxModel&&document.documentElement[E]||document.body[E]:this[0][E];
};
});
c.each(["Height","Width"],function(J,H){var F=J?"Left":"Top",I=J?"Right":"Bottom",G=H.toLowerCase();
c.fn["inner"+H]=function(){return this[0]?c.css(this[0],G,false,"padding"):null;
};
c.fn["outer"+H]=function(K){return this[0]?c.css(this[0],G,false,K?"margin":"border"):null;
};
var E=H.toLowerCase();
c.fn[E]=function(K){return this[0]==D?document.compatMode=="CSS1Compat"&&document.documentElement["client"+H]||document.body["client"+H]:this[0]==document?Math.max(document.documentElement["client"+H],document.body["scroll"+H],document.documentElement["scroll"+H],document.body["offset"+H],document.documentElement["offset"+H]):K===z?(this.length?c.css(this[0],E):null):this.css(E,typeof K==="string"?K:K+"px");
};
});
})();
}SimileAjax.version="2.2.1";
SimileAjax.jQuery=jQuery.noConflict(true);
if(typeof window["$"]=="undefined"){window.$=SimileAjax.jQuery;
}SimileAjax.Platform.os={isMac:false,isWin:false,isWin32:false,isUnix:false};
SimileAjax.Platform.browser={isIE:false,isNetscape:false,isMozilla:false,isFirefox:false,isOpera:false,isSafari:false,majorVersion:0,minorVersion:0};
(function(){var I=navigator.appName.toLowerCase();
var F=navigator.userAgent.toLowerCase();
SimileAjax.Platform.os.isMac=(F.indexOf("mac")!=-1);
SimileAjax.Platform.os.isWin=(F.indexOf("win")!=-1);
SimileAjax.Platform.os.isWin32=SimileAjax.Platform.isWin&&(F.indexOf("95")!=-1||F.indexOf("98")!=-1||F.indexOf("nt")!=-1||F.indexOf("win32")!=-1||F.indexOf("32bit")!=-1);
SimileAjax.Platform.os.isUnix=(F.indexOf("x11")!=-1);
SimileAjax.Platform.browser.isIE=(I.indexOf("microsoft")!=-1);
SimileAjax.Platform.browser.isNetscape=(I.indexOf("netscape")!=-1);
SimileAjax.Platform.browser.isMozilla=(F.indexOf("mozilla")!=-1);
SimileAjax.Platform.browser.isFirefox=(F.indexOf("firefox")!=-1);
SimileAjax.Platform.browser.isOpera=(I.indexOf("opera")!=-1);
SimileAjax.Platform.browser.isSafari=(I.indexOf("safari")!=-1);
var G=function(A){var B=A.split(".");
SimileAjax.Platform.browser.majorVersion=parseInt(B[0]);
SimileAjax.Platform.browser.minorVersion=parseInt(B[1]);
};
var J=function(B,C,A){var D=B.indexOf(C,A);
return D>=0?D:B.length;
};
if(SimileAjax.Platform.browser.isMozilla){var H=F.indexOf("mozilla/");
if(H>=0){G(F.substring(H+8,J(F," ",H)));
}}if(SimileAjax.Platform.browser.isIE){var H=F.indexOf("msie ");
if(H>=0){G(F.substring(H+5,J(F,";",H)));
}}if(SimileAjax.Platform.browser.isNetscape){var H=F.indexOf("rv:");
if(H>=0){G(F.substring(H+3,J(F,")",H)));
}}if(SimileAjax.Platform.browser.isFirefox){var H=F.indexOf("firefox/");
if(H>=0){G(F.substring(H+8,J(F," ",H)));
}}if(!("localeCompare" in String.prototype)){String.prototype.localeCompare=function(A){if(this<A){return -1;
}else{if(this>A){return 1;
}else{return 0;
}}};
}})();
SimileAjax.Platform.getDefaultLocale=function(){return SimileAjax.Platform.clientLocale;
};
SimileAjax.ListenerQueue=function(B){this._listeners=[];
this._wildcardHandlerName=B;
};
SimileAjax.ListenerQueue.prototype.add=function(B){this._listeners.push(B);
};
SimileAjax.ListenerQueue.prototype.remove=function(E){var F=this._listeners;
for(var D=0;
D<F.length;
D++){if(F[D]==E){F.splice(D,1);
break;
}}};
SimileAjax.ListenerQueue.prototype.fire=function(L,G){var J=[].concat(this._listeners);
for(var K=0;
K<J.length;
K++){var I=J[K];
if(L in I){try{I[L].apply(I,G);
}catch(H){SimileAjax.Debug.exception("Error firing event of name "+L,H);
}}else{if(this._wildcardHandlerName!=null&&this._wildcardHandlerName in I){try{I[this._wildcardHandlerName].apply(I,[L]);
}catch(H){SimileAjax.Debug.exception("Error firing event of name "+L+" to wildcard handler",H);
}}}}};
SimileAjax.Set=function(C){this._hash={};
this._count=0;
if(C instanceof Array){for(var D=0;
D<C.length;
D++){this.add(C[D]);
}}else{if(C instanceof SimileAjax.Set){this.addSet(C);
}}};
SimileAjax.Set.prototype.add=function(B){if(!(B in this._hash)){this._hash[B]=true;
this._count++;
return true;
}return false;
};
SimileAjax.Set.prototype.addSet=function(D){for(var C in D._hash){this.add(C);
}};
SimileAjax.Set.prototype.remove=function(B){if(B in this._hash){delete this._hash[B];
this._count--;
return true;
}return false;
};
SimileAjax.Set.prototype.removeSet=function(D){for(var C in D._hash){this.remove(C);
}};
SimileAjax.Set.prototype.retainSet=function(D){for(var C in this._hash){if(!D.contains(C)){delete this._hash[C];
this._count--;
}}};
SimileAjax.Set.prototype.contains=function(B){return(B in this._hash);
};
SimileAjax.Set.prototype.size=function(){return this._count;
};
SimileAjax.Set.prototype.toArray=function(){var C=[];
for(var D in this._hash){C.push(D);
}return C;
};
SimileAjax.Set.prototype.visit=function(C){for(var D in this._hash){if(C(D)==true){break;
}}};
SimileAjax.SortedArray=function(D,C){this._a=(C instanceof Array)?C:[];
this._compare=D;
};
SimileAjax.SortedArray.prototype.add=function(E){var D=this;
var F=this.find(function(A){return D._compare(A,E);
});
if(F<this._a.length){this._a.splice(F,0,E);
}else{this._a.push(E);
}};
SimileAjax.SortedArray.prototype.remove=function(E){var D=this;
var F=this.find(function(A){return D._compare(A,E);
});
while(F<this._a.length&&this._compare(this._a[F],E)==0){if(this._a[F]==E){this._a.splice(F,1);
return true;
}else{F++;
}}return false;
};
SimileAjax.SortedArray.prototype.removeAll=function(){this._a=[];
};
SimileAjax.SortedArray.prototype.elementAt=function(B){return this._a[B];
};
SimileAjax.SortedArray.prototype.length=function(){return this._a.length;
};
SimileAjax.SortedArray.prototype.find=function(H){var J=0;
var F=this._a.length;
while(J<F){var I=Math.floor((J+F)/2);
var G=H(this._a[I]);
if(I==J){return G<0?J+1:J;
}else{if(G<0){J=I;
}else{F=I;
}}}return J;
};
SimileAjax.SortedArray.prototype.getFirst=function(){return(this._a.length>0)?this._a[0]:null;
};
SimileAjax.SortedArray.prototype.getLast=function(){return(this._a.length>0)?this._a[this._a.length-1]:null;
};
SimileAjax.EventIndex=function(D){var C=this;
this._unit=(D!=null)?D:SimileAjax.NativeDateUnit;
this._events=new SimileAjax.SortedArray(function(A,B){return C._unit.compare(A.getStart(),B.getStart());
});
this._idToEvent={};
this._indexed=true;
};
SimileAjax.EventIndex.prototype.getUnit=function(){return this._unit;
};
SimileAjax.EventIndex.prototype.getEvent=function(B){return this._idToEvent[B];
};
SimileAjax.EventIndex.prototype.add=function(B){this._events.add(B);
this._idToEvent[B.getID()]=B;
this._indexed=false;
};
SimileAjax.EventIndex.prototype.removeAll=function(){this._events.removeAll();
this._idToEvent={};
this._indexed=false;
};
SimileAjax.EventIndex.prototype.getCount=function(){return this._events.length();
};
SimileAjax.EventIndex.prototype.getIterator=function(C,D){if(!this._indexed){this._index();
}return new SimileAjax.EventIndex._Iterator(this._events,C,D,this._unit);
};
SimileAjax.EventIndex.prototype.getReverseIterator=function(C,D){if(!this._indexed){this._index();
}return new SimileAjax.EventIndex._ReverseIterator(this._events,C,D,this._unit);
};
SimileAjax.EventIndex.prototype.getAllIterator=function(){return new SimileAjax.EventIndex._AllIterator(this._events);
};
SimileAjax.EventIndex.prototype.getEarliestDate=function(){var B=this._events.getFirst();
return(B==null)?null:B.getStart();
};
SimileAjax.EventIndex.prototype.getLatestDate=function(){var E=this._events.getLast();
if(E==null){return null;
}if(!this._indexed){this._index();
}var G=E._earliestOverlapIndex;
var H=this._events.elementAt(G).getEnd();
for(var F=G+1;
F<this._events.length();
F++){H=this._unit.later(H,this._events.elementAt(F).getEnd());
}return H;
};
SimileAjax.EventIndex.prototype._index=function(){var L=this._events.length();
for(var K=0;
K<L;
K++){var M=this._events.elementAt(K);
M._earliestOverlapIndex=K;
}var I=1;
for(var K=0;
K<L;
K++){var M=this._events.elementAt(K);
var N=M.getEnd();
I=Math.max(I,K+1);
while(I<L){var H=this._events.elementAt(I);
var J=H.getStart();
if(this._unit.compare(J,N)<0){H._earliestOverlapIndex=K;
I++;
}else{break;
}}}this._indexed=true;
};
SimileAjax.EventIndex._Iterator=function(H,E,F,G){this._events=H;
this._startDate=E;
this._endDate=F;
this._unit=G;
this._currentIndex=H.find(function(A){return G.compare(A.getStart(),E);
});
if(this._currentIndex-1>=0){this._currentIndex=this._events.elementAt(this._currentIndex-1)._earliestOverlapIndex;
}this._currentIndex--;
this._maxIndex=H.find(function(A){return G.compare(A.getStart(),F);
});
this._hasNext=false;
this._next=null;
this._findNext();
};
SimileAjax.EventIndex._Iterator.prototype={hasNext:function(){return this._hasNext;
},next:function(){if(this._hasNext){var B=this._next;
this._findNext();
return B;
}else{return null;
}},_findNext:function(){var D=this._unit;
while((++this._currentIndex)<this._maxIndex){var C=this._events.elementAt(this._currentIndex);
if(D.compare(C.getStart(),this._endDate)<0&&D.compare(C.getEnd(),this._startDate)>0){this._next=C;
this._hasNext=true;
return ;
}}this._next=null;
this._hasNext=false;
}};
SimileAjax.EventIndex._ReverseIterator=function(H,E,F,G){this._events=H;
this._startDate=E;
this._endDate=F;
this._unit=G;
this._minIndex=H.find(function(A){return G.compare(A.getStart(),E);
});
if(this._minIndex-1>=0){this._minIndex=this._events.elementAt(this._minIndex-1)._earliestOverlapIndex;
}this._maxIndex=H.find(function(A){return G.compare(A.getStart(),F);
});
this._currentIndex=this._maxIndex;
this._hasNext=false;
this._next=null;
this._findNext();
};
SimileAjax.EventIndex._ReverseIterator.prototype={hasNext:function(){return this._hasNext;
},next:function(){if(this._hasNext){var B=this._next;
this._findNext();
return B;
}else{return null;
}},_findNext:function(){var D=this._unit;
while((--this._currentIndex)>=this._minIndex){var C=this._events.elementAt(this._currentIndex);
if(D.compare(C.getStart(),this._endDate)<0&&D.compare(C.getEnd(),this._startDate)>0){this._next=C;
this._hasNext=true;
return ;
}}this._next=null;
this._hasNext=false;
}};
SimileAjax.EventIndex._AllIterator=function(B){this._events=B;
this._index=0;
};
SimileAjax.EventIndex._AllIterator.prototype={hasNext:function(){return this._index<this._events.length();
},next:function(){return this._index<this._events.length()?this._events.elementAt(this._index++):null;
}};
SimileAjax.DateTime=new Object();
SimileAjax.DateTime.MILLISECOND=0;
SimileAjax.DateTime.SECOND=1;
SimileAjax.DateTime.MINUTE=2;
SimileAjax.DateTime.HOUR=3;
SimileAjax.DateTime.DAY=4;
SimileAjax.DateTime.WEEK=5;
SimileAjax.DateTime.MONTH=6;
SimileAjax.DateTime.YEAR=7;
SimileAjax.DateTime.DECADE=8;
SimileAjax.DateTime.CENTURY=9;
SimileAjax.DateTime.MILLENNIUM=10;
SimileAjax.DateTime.EPOCH=-1;
SimileAjax.DateTime.ERA=-2;
SimileAjax.DateTime.gregorianUnitLengths=[];
(function(){var D=SimileAjax.DateTime;
var C=D.gregorianUnitLengths;
C[D.MILLISECOND]=1;
C[D.SECOND]=1000;
C[D.MINUTE]=C[D.SECOND]*60;
C[D.HOUR]=C[D.MINUTE]*60;
C[D.DAY]=C[D.HOUR]*24;
C[D.WEEK]=C[D.DAY]*7;
C[D.MONTH]=C[D.DAY]*31;
C[D.YEAR]=C[D.DAY]*365;
C[D.DECADE]=C[D.YEAR]*10;
C[D.CENTURY]=C[D.YEAR]*100;
C[D.MILLENNIUM]=C[D.YEAR]*1000;
})();
SimileAjax.DateTime._dateRegexp=new RegExp("^(-?)([0-9]{4})("+["(-?([0-9]{2})(-?([0-9]{2}))?)","(-?([0-9]{3}))","(-?W([0-9]{2})(-?([1-7]))?)"].join("|")+")?$");
SimileAjax.DateTime._timezoneRegexp=new RegExp("Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$");
SimileAjax.DateTime._timeRegexp=new RegExp("^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$");
SimileAjax.DateTime.setIso8601Date=function(W,Y){var V=Y.match(SimileAjax.DateTime._dateRegexp);
if(!V){throw new Error("Invalid date string: "+Y);
}var P=(V[1]=="-")?-1:1;
var U=P*V[2];
var X=V[5];
var O=V[7];
var Z=V[9];
var Q=V[11];
var R=(V[13])?V[13]:1;
W.setUTCFullYear(U);
if(Z){W.setUTCMonth(0);
W.setUTCDate(Number(Z));
}else{if(Q){W.setUTCMonth(0);
W.setUTCDate(1);
var S=W.getUTCDay();
var T=(S)?S:7;
var N=Number(R)+(7*Number(Q));
if(T<=4){W.setUTCDate(N+1-T);
}else{W.setUTCDate(N+8-T);
}}else{if(X){W.setUTCDate(1);
W.setUTCMonth(X-1);
}if(O){W.setUTCDate(O);
}}}return W;
};
SimileAjax.DateTime.setIso8601Time=function(J,M){var I=M.match(SimileAjax.DateTime._timeRegexp);
if(!I){SimileAjax.Debug.warn("Invalid time string: "+M);
return false;
}var H=I[1];
var K=Number((I[3])?I[3]:0);
var L=(I[5])?I[5]:0;
var N=I[7]?(Number("0."+I[7])*1000):0;
J.setUTCHours(H);
J.setUTCMinutes(K);
J.setUTCSeconds(L);
J.setUTCMilliseconds(N);
return J;
};
SimileAjax.DateTime.timezoneOffset=new Date().getTimezoneOffset();
SimileAjax.DateTime.setIso8601=function(J,F){var H=null;
var G=(F.indexOf("T")==-1)?F.split(" "):F.split("T");
SimileAjax.DateTime.setIso8601Date(J,G[0]);
if(G.length==2){var I=G[1].match(SimileAjax.DateTime._timezoneRegexp);
if(I){if(I[0]=="Z"){H=0;
}else{H=(Number(I[3])*60)+Number(I[5]);
H*=((I[2]=="-")?1:-1);
}G[1]=G[1].substr(0,G[1].length-I[0].length);
}SimileAjax.DateTime.setIso8601Time(J,G[1]);
}if(H==null){H=J.getTimezoneOffset();
}J.setTime(J.getTime()+H*60000);
return J;
};
SimileAjax.DateTime.parseIso8601DateTime=function(C){try{return SimileAjax.DateTime.setIso8601(new Date(0),C);
}catch(D){return null;
}};
SimileAjax.DateTime.parseGregorianDateTime=function(I){if(I==null){return null;
}else{if(I instanceof Date){return I;
}}var N=I.toString();
if(N.length>0&&N.length<8){var M=N.indexOf(" ");
if(M>0){var H=parseInt(N.substr(0,M));
var K=N.substr(M+1);
if(K.toLowerCase()=="bc"){H=1-H;
}}else{var H=parseInt(N);
}var J=new Date(0);
J.setUTCFullYear(H);
return J;
}try{return new Date(Date.parse(N));
}catch(L){return null;
}};
SimileAjax.DateTime.roundDownToInterval=function(N,T,Q,P,O){var L=Q*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR];
var R=new Date(N.getTime()+L);
var V=function(A){A.setUTCMilliseconds(0);
A.setUTCSeconds(0);
A.setUTCMinutes(0);
A.setUTCHours(0);
};
var M=function(A){V(A);
A.setUTCDate(1);
A.setUTCMonth(0);
};
switch(T){case SimileAjax.DateTime.MILLISECOND:var S=R.getUTCMilliseconds();
R.setUTCMilliseconds(S-(S%P));
break;
case SimileAjax.DateTime.SECOND:R.setUTCMilliseconds(0);
var S=R.getUTCSeconds();
R.setUTCSeconds(S-(S%P));
break;
case SimileAjax.DateTime.MINUTE:R.setUTCMilliseconds(0);
R.setUTCSeconds(0);
var S=R.getUTCMinutes();
R.setTime(R.getTime()-(S%P)*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.MINUTE]);
break;
case SimileAjax.DateTime.HOUR:R.setUTCMilliseconds(0);
R.setUTCSeconds(0);
R.setUTCMinutes(0);
var S=R.getUTCHours();
R.setUTCHours(S-(S%P));
break;
case SimileAjax.DateTime.DAY:V(R);
break;
case SimileAjax.DateTime.WEEK:V(R);
var U=(R.getUTCDay()+7-O)%7;
R.setTime(R.getTime()-U*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.DAY]);
break;
case SimileAjax.DateTime.MONTH:V(R);
R.setUTCDate(1);
var S=R.getUTCMonth();
R.setUTCMonth(S-(S%P));
break;
case SimileAjax.DateTime.YEAR:M(R);
var S=R.getUTCFullYear();
R.setUTCFullYear(S-(S%P));
break;
case SimileAjax.DateTime.DECADE:M(R);
R.setUTCFullYear(Math.floor(R.getUTCFullYear()/10)*10);
break;
case SimileAjax.DateTime.CENTURY:M(R);
R.setUTCFullYear(Math.floor(R.getUTCFullYear()/100)*100);
break;
case SimileAjax.DateTime.MILLENNIUM:M(R);
R.setUTCFullYear(Math.floor(R.getUTCFullYear()/1000)*1000);
break;
}N.setTime(R.getTime()-L);
};
SimileAjax.DateTime.roundUpToInterval=function(J,H,K,G,L){var I=J.getTime();
SimileAjax.DateTime.roundDownToInterval(J,H,K,G,L);
if(J.getTime()<I){J.setTime(J.getTime()+SimileAjax.DateTime.gregorianUnitLengths[H]*G);
}};
SimileAjax.DateTime.incrementByInterval=function(J,G,F){F=(typeof F=="undefined")?0:F;
var H=F*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR];
var I=new Date(J.getTime()+H);
switch(G){case SimileAjax.DateTime.MILLISECOND:I.setTime(I.getTime()+1);
break;
case SimileAjax.DateTime.SECOND:I.setTime(I.getTime()+1000);
break;
case SimileAjax.DateTime.MINUTE:I.setTime(I.getTime()+SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.MINUTE]);
break;
case SimileAjax.DateTime.HOUR:I.setTime(I.getTime()+SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR]);
break;
case SimileAjax.DateTime.DAY:I.setUTCDate(I.getUTCDate()+1);
break;
case SimileAjax.DateTime.WEEK:I.setUTCDate(I.getUTCDate()+7);
break;
case SimileAjax.DateTime.MONTH:I.setUTCMonth(I.getUTCMonth()+1);
break;
case SimileAjax.DateTime.YEAR:I.setUTCFullYear(I.getUTCFullYear()+1);
break;
case SimileAjax.DateTime.DECADE:I.setUTCFullYear(I.getUTCFullYear()+10);
break;
case SimileAjax.DateTime.CENTURY:I.setUTCFullYear(I.getUTCFullYear()+100);
break;
case SimileAjax.DateTime.MILLENNIUM:I.setUTCFullYear(I.getUTCFullYear()+1000);
break;
}J.setTime(I.getTime()-H);
};
SimileAjax.DateTime.removeTimeZoneOffset=function(D,C){return new Date(D.getTime()+C*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR]);
};
SimileAjax.DateTime.getTimezone=function(){var B=new Date().getTimezoneOffset();
return B/-60;
};
SimileAjax.Debug={silent:false};
SimileAjax.Debug.log=function(D){var C;
if("console" in window&&"log" in window.console){C=function(A){console.log(A);
};
}else{C=function(A){if(!SimileAjax.Debug.silent){alert(A);
}};
}SimileAjax.Debug.log=C;
C(D);
};
SimileAjax.Debug.warn=function(D){var C;
if("console" in window&&"warn" in window.console){C=function(A){console.warn(A);
};
}else{C=function(A){if(!SimileAjax.Debug.silent){alert(A);
}};
}SimileAjax.Debug.warn=C;
C(D);
};
SimileAjax.Debug.exception=function(H,F){var E,G=SimileAjax.parseURLParameters();
if(G.errors=="throw"||SimileAjax.params.errors=="throw"){E=function(A,B){throw (A);
};
}else{if("console" in window&&"error" in window.console){E=function(A,B){if(B!=null){console.error(B+" %o",A);
}else{console.error(A);
}throw (A);
};
}else{E=function(A,B){if(!SimileAjax.Debug.silent){alert("Caught exception: "+B+"\n\nDetails: "+("description" in A?A.description:A));
}throw (A);
};
}}SimileAjax.Debug.exception=E;
E(H,F);
};
SimileAjax.Debug.objectToString=function(B){return SimileAjax.Debug._objectToString(B,"");
};
SimileAjax.Debug._objectToString=function(H,F){var I=F+" ";
if(typeof H=="object"){var J="{";
for(G in H){J+=I+G+": "+SimileAjax.Debug._objectToString(H[G],I)+"\n";
}J+=F+"}";
return J;
}else{if(typeof H=="array"){var J="[";
for(var G=0;
G<H.length;
G++){J+=SimileAjax.Debug._objectToString(H[G],I)+"\n";
}J+=F+"]";
return J;
}else{return H;
}}};
SimileAjax.DOM=new Object();
SimileAjax.DOM.registerEventWithObject=function(G,E,F,H){SimileAjax.DOM.registerEvent(G,E,function(B,C,A){return F[H].call(F,B,C,A);
});
};
SimileAjax.DOM.registerEvent=function(G,H,F){var E=function(B){B=(B)?B:((event)?event:null);
if(B){var A=(B.target)?B.target:((B.srcElement)?B.srcElement:null);
if(A){A=(A.nodeType==1||A.nodeType==9)?A:A.parentNode;
}return F(G,B,A);
}return true;
};
if(SimileAjax.Platform.browser.isIE){G.attachEvent("on"+H,E);
}else{G.addEventListener(H,E,false);
}};
SimileAjax.DOM.getPageCoordinates=function(J){var G=0;
var H=0;
if(J.nodeType!=1){J=J.parentNode;
}var I=J;
while(I!=null){G+=I.offsetLeft;
H+=I.offsetTop;
I=I.offsetParent;
}var F=document.body;
while(J!=null&&J!=F){if("scrollLeft" in J){G-=J.scrollLeft;
H-=J.scrollTop;
}J=J.parentNode;
}return{left:G,top:H};
};
SimileAjax.DOM.getSize=function(F){var D=this.getStyle(F,"width");
var E=this.getStyle(F,"height");
if(D.indexOf("px")>-1){D=D.replace("px","");
}if(E.indexOf("px")>-1){E=E.replace("px","");
}return{w:D,h:E};
};
SimileAjax.DOM.getStyle=function(F,D){if(F.currentStyle){var E=F.currentStyle[D];
}else{if(window.getComputedStyle){var E=document.defaultView.getComputedStyle(F,null).getPropertyValue(D);
}else{var E="";
}}return E;
};
SimileAjax.DOM.getEventRelativeCoordinates=function(D,F){if(SimileAjax.Platform.browser.isIE){if(D.type=="mousewheel"){var E=SimileAjax.DOM.getPageCoordinates(F);
return{x:D.clientX-E.left,y:D.clientY-E.top};
}else{return{x:D.offsetX,y:D.offsetY};
}}else{var E=SimileAjax.DOM.getPageCoordinates(F);
if((D.type=="DOMMouseScroll")&&SimileAjax.Platform.browser.isFirefox&&(SimileAjax.Platform.browser.majorVersion==2)){return{x:D.screenX-E.left,y:D.screenY-E.top};
}else{return{x:D.pageX-E.left,y:D.pageY-E.top};
}}};
SimileAjax.DOM.getEventPageCoordinates=function(B){if(SimileAjax.Platform.browser.isIE){return{x:B.clientX+document.body.scrollLeft,y:B.clientY+document.body.scrollTop};
}else{return{x:B.pageX,y:B.pageY};
}};
SimileAjax.DOM.hittest=function(D,E,F){return SimileAjax.DOM._hittest(document.body,D,E,F);
};
SimileAjax.DOM._hittest=function(O,S,T,W){var R=O.childNodes;
outer:for(var X=0;
X<R.length;
X++){var Q=R[X];
for(var Y=0;
Y<W.length;
Y++){if(Q==W[Y]){continue outer;
}}if(Q.offsetWidth==0&&Q.offsetHeight==0){var P=SimileAjax.DOM._hittest(Q,S,T,W);
if(P!=Q){return P;
}}else{var U=0;
var Z=0;
var N=Q;
while(N){U+=N.offsetTop;
Z+=N.offsetLeft;
N=N.offsetParent;
}if(Z<=S&&U<=T&&(S-Z)<Q.offsetWidth&&(T-U)<Q.offsetHeight){return SimileAjax.DOM._hittest(Q,S,T,W);
}else{if(Q.nodeType==1&&Q.tagName=="TR"){var V=SimileAjax.DOM._hittest(Q,S,T,W);
if(V!=Q){return V;
}}}}}return O;
};
SimileAjax.DOM.cancelEvent=function(B){B.returnValue=false;
B.cancelBubble=true;
if("preventDefault" in B){B.preventDefault();
}};
SimileAjax.DOM.appendClassName=function(G,F){var H=G.className.split(" ");
for(var E=0;
E<H.length;
E++){if(H[E]==F){return ;
}}H.push(F);
G.className=H.join(" ");
};
SimileAjax.DOM.createInputElement=function(C){var D=document.createElement("div");
D.innerHTML="<input type='"+C+"' />";
return D.firstChild;
};
SimileAjax.DOM.createDOMFromTemplate=function(D){var C={};
C.elmt=SimileAjax.DOM._createDOMFromTemplate(D,C,null);
return C;
};
SimileAjax.DOM._createDOMFromTemplate=function(N,P,T){if(N==null){return null;
}else{if(typeof N!="object"){var K=document.createTextNode(N);
if(T!=null){T.appendChild(K);
}return K;
}else{var L=null;
if("tag" in N){var O=N.tag;
if(T!=null){if(O=="tr"){L=T.insertRow(T.rows.length);
}else{if(O=="td"){L=T.insertCell(T.cells.length);
}}}if(L==null){L=O=="input"?SimileAjax.DOM.createInputElement(N.type):document.createElement(O);
if(T!=null){T.appendChild(L);
}}}else{L=N.elmt;
if(T!=null){T.appendChild(L);
}}for(var M in N){var R=N[M];
if(M=="field"){P[R]=L;
}else{if(M=="className"){L.className=R;
}else{if(M=="id"){L.id=R;
}else{if(M=="title"){L.title=R;
}else{if(M=="type"&&L.tagName=="input"){}else{if(M=="style"){for(n in R){var Q=R[n];
if(n=="float"){n=SimileAjax.Platform.browser.isIE?"styleFloat":"cssFloat";
}L.style[n]=Q;
}}else{if(M=="children"){for(var S=0;
S<R.length;
S++){SimileAjax.DOM._createDOMFromTemplate(R[S],P,L);
}}else{if(M!="tag"&&M!="elmt"){L.setAttribute(M,R);
}}}}}}}}}return L;
}}};
SimileAjax.DOM._cachedParent=null;
SimileAjax.DOM.createElementFromString=function(B){if(SimileAjax.DOM._cachedParent==null){SimileAjax.DOM._cachedParent=document.createElement("div");
}SimileAjax.DOM._cachedParent.innerHTML=B;
return SimileAjax.DOM._cachedParent.firstChild;
};
SimileAjax.DOM.createDOMFromString=function(F,I,H){var J=typeof F=="string"?document.createElement(F):F;
J.innerHTML=I;
var G={elmt:J};
SimileAjax.DOM._processDOMChildrenConstructedFromString(G,J,H!=null?H:{});
return G;
};
SimileAjax.DOM._processDOMConstructedFromString=function(H,F,J){var G=F.id;
if(G!=null&&G.length>0){F.removeAttribute("id");
if(G in J){var I=F.parentNode;
I.insertBefore(J[G],F);
I.removeChild(F);
H[G]=J[G];
return ;
}else{H[G]=F;
}}if(F.hasChildNodes()){SimileAjax.DOM._processDOMChildrenConstructedFromString(H,F,J);
}};
SimileAjax.DOM._processDOMChildrenConstructedFromString=function(G,J,H){var I=J.firstChild;
while(I!=null){var F=I.nextSibling;
if(I.nodeType==1){SimileAjax.DOM._processDOMConstructedFromString(G,I,H);
}I=F;
}};
SimileAjax.Graphics=new Object();
SimileAjax.Graphics.pngIsTranslucent=(!SimileAjax.Platform.browser.isIE)||(SimileAjax.Platform.browser.majorVersion>6);
if(!SimileAjax.Graphics.pngIsTranslucent){SimileAjax.includeCssFile(document,SimileAjax.urlPrefix+"styles/graphics-ie6.css");
}SimileAjax.Graphics._createTranslucentImage1=function(D,E){var F=document.createElement("img");
F.setAttribute("src",D);
if(E!=null){F.style.verticalAlign=E;
}return F;
};
SimileAjax.Graphics._createTranslucentImage2=function(D,E){var F=document.createElement("img");
F.style.width="1px";
F.style.height="1px";
F.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D+"', sizingMethod='image')";
F.style.verticalAlign=(E!=null)?E:"middle";
return F;
};
SimileAjax.Graphics.createTranslucentImage=SimileAjax.Graphics.pngIsTranslucent?SimileAjax.Graphics._createTranslucentImage1:SimileAjax.Graphics._createTranslucentImage2;
SimileAjax.Graphics._createTranslucentImageHTML1=function(C,D){return'<img src="'+C+'"'+(D!=null?' style="vertical-align: '+D+';"':"")+" />";
};
SimileAjax.Graphics._createTranslucentImageHTML2=function(D,E){var F="width: 1px; height: 1px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D+"', sizingMethod='image');"+(E!=null?" vertical-align: "+E+";":"");
return"<img src='"+D+"' style=\""+F+'" />';
};
SimileAjax.Graphics.createTranslucentImageHTML=SimileAjax.Graphics.pngIsTranslucent?SimileAjax.Graphics._createTranslucentImageHTML1:SimileAjax.Graphics._createTranslucentImageHTML2;
SimileAjax.Graphics.setOpacity=function(F,D){if(SimileAjax.Platform.browser.isIE){F.style.filter="progid:DXImageTransform.Microsoft.Alpha(Style=0,Opacity="+D+")";
}else{var E=(D/100).toString();
F.style.opacity=E;
F.style.MozOpacity=E;
}};
SimileAjax.Graphics.bubbleConfig={containerCSSClass:"simileAjax-bubble-container",innerContainerCSSClass:"simileAjax-bubble-innerContainer",contentContainerCSSClass:"simileAjax-bubble-contentContainer",borderGraphicSize:50,borderGraphicCSSClassPrefix:"simileAjax-bubble-border-",arrowGraphicTargetOffset:33,arrowGraphicLength:100,arrowGraphicWidth:49,arrowGraphicCSSClassPrefix:"simileAjax-bubble-arrow-",closeGraphicCSSClass:"simileAjax-bubble-close",extraPadding:20};
SimileAjax.Graphics.createBubbleForContentAndPoint=function(H,J,K,G,L,I){if(typeof G!="number"){G=300;
}if(typeof I!="number"){I=0;
}H.style.position="absolute";
H.style.left="-5000px";
H.style.top="0px";
H.style.width=G+"px";
document.body.appendChild(H);
window.setTimeout(function(){var B=H.scrollWidth+10;
var E=H.scrollHeight+10;
var C=0;
if(I>0&&E>I){E=I;
C=B-25;
}var D=SimileAjax.Graphics.createBubbleForPoint(J,K,B,E,L);
document.body.removeChild(H);
H.style.position="static";
H.style.left="";
H.style.top="";
if(C>0){var A=document.createElement("div");
H.style.width="";
A.style.width=C+"px";
A.appendChild(H);
D.content.appendChild(A);
}else{H.style.width=B+"px";
D.content.appendChild(H);
}},200);
};
SimileAjax.Graphics.createBubbleForPoint=function(i,j,Z,X,g){Z=parseInt(Z,10);
X=parseInt(X,10);
var f=SimileAjax.Graphics.bubbleConfig;
var W=SimileAjax.Graphics.pngIsTranslucent?"pngTranslucent":"pngNotTranslucent";
var Y=Z+2*f.borderGraphicSize;
var U=X+2*f.borderGraphicSize;
var V=function(A){return A+" "+A+"-"+W;
};
var c=document.createElement("div");
c.className=V(f.containerCSSClass);
c.style.width=Z+"px";
c.style.height=X+"px";
var e=document.createElement("div");
e.className=V(f.innerContainerCSSClass);
c.appendChild(e);
var b=function(){if(!a._closed){document.body.removeChild(a._div);
a._doc=null;
a._div=null;
a._content=null;
a._closed=true;
}};
var a={_closed:false};
var S=SimileAjax.WindowManager.pushLayer(b,true,c);
a._div=c;
a.close=function(){SimileAjax.WindowManager.popLayer(S);
};
var d=function(A){var B=document.createElement("div");
B.className=V(f.borderGraphicCSSClassPrefix+A);
e.appendChild(B);
};
d("top-left");
d("top-right");
d("bottom-left");
d("bottom-right");
d("left");
d("right");
d("top");
d("bottom");
var h=document.createElement("div");
h.className=V(f.contentContainerCSSClass);
e.appendChild(h);
a.content=h;
var T=document.createElement("div");
T.className=V(f.closeGraphicCSSClass);
e.appendChild(T);
SimileAjax.WindowManager.registerEventWithObject(T,"click",a,"close");
(function(){var F=SimileAjax.Graphics.getWindowDimensions();
var C=F.w;
var E=F.h;
var B=Math.ceil(f.arrowGraphicWidth/2);
var G=function(J){var I=document.createElement("div");
I.className=V(f.arrowGraphicCSSClassPrefix+"point-"+J);
e.appendChild(I);
return I;
};
if(i-B-f.borderGraphicSize-f.extraPadding>0&&i+B+f.borderGraphicSize+f.extraPadding<C){var H=i-Math.round(Z/2);
H=i<(C/2)?Math.max(H,f.extraPadding+f.borderGraphicSize):Math.min(H,C-f.extraPadding-f.borderGraphicSize-Z);
if((g&&g=="top")||(!g&&(j-f.arrowGraphicTargetOffset-X-f.borderGraphicSize-f.extraPadding>0))){var D=G("down");
D.style.left=(i-B-H)+"px";
c.style.left=H+"px";
c.style.top=(j-f.arrowGraphicTargetOffset-X)+"px";
return ;
}else{if((g&&g=="bottom")||(!g&&(j+f.arrowGraphicTargetOffset+X+f.borderGraphicSize+f.extraPadding<E))){var D=G("up");
D.style.left=(i-B-H)+"px";
c.style.left=H+"px";
c.style.top=(j+f.arrowGraphicTargetOffset)+"px";
return ;
}}}var A=j-Math.round(X/2);
A=j<(E/2)?Math.max(A,f.extraPadding+f.borderGraphicSize):Math.min(A,E-f.extraPadding-f.borderGraphicSize-X);
if((g&&g=="left")||(!g&&(i-f.arrowGraphicTargetOffset-Z-f.borderGraphicSize-f.extraPadding>0))){var D=G("right");
D.style.top=(j-B-A)+"px";
c.style.top=A+"px";
c.style.left=(i-f.arrowGraphicTargetOffset-Z)+"px";
}else{var D=G("left");
D.style.top=(j-B-A)+"px";
c.style.top=A+"px";
c.style.left=(i+f.arrowGraphicTargetOffset)+"px";
}})();
document.body.appendChild(c);
return a;
};
SimileAjax.Graphics.getWindowDimensions=function(){if(typeof window.innerHeight=="number"){return{w:window.innerWidth,h:window.innerHeight};
}else{if(document.documentElement&&document.documentElement.clientHeight){return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};
}else{if(document.body&&document.body.clientHeight){return{w:document.body.clientWidth,h:document.body.clientHeight};
}}}};
SimileAjax.Graphics.createMessageBubble=function(O){var P=O.createElement("div");
if(SimileAjax.Graphics.pngIsTranslucent){var N=O.createElement("div");
N.style.height="33px";
N.style.background="url("+SimileAjax.urlPrefix+"images/message-top-left.png) top left no-repeat";
N.style.paddingLeft="44px";
P.appendChild(N);
var K=O.createElement("div");
K.style.height="33px";
K.style.background="url("+SimileAjax.urlPrefix+"images/message-top-right.png) top right no-repeat";
N.appendChild(K);
var Q=O.createElement("div");
Q.style.background="url("+SimileAjax.urlPrefix+"images/message-left.png) top left repeat-y";
Q.style.paddingLeft="44px";
P.appendChild(Q);
var M=O.createElement("div");
M.style.background="url("+SimileAjax.urlPrefix+"images/message-right.png) top right repeat-y";
M.style.paddingRight="44px";
Q.appendChild(M);
var J=O.createElement("div");
M.appendChild(J);
var L=O.createElement("div");
L.style.height="55px";
L.style.background="url("+SimileAjax.urlPrefix+"images/message-bottom-left.png) bottom left no-repeat";
L.style.paddingLeft="44px";
P.appendChild(L);
var R=O.createElement("div");
R.style.height="55px";
R.style.background="url("+SimileAjax.urlPrefix+"images/message-bottom-right.png) bottom right no-repeat";
L.appendChild(R);
}else{P.style.border="2px solid #7777AA";
P.style.padding="20px";
P.style.background="white";
SimileAjax.Graphics.setOpacity(P,90);
var J=O.createElement("div");
P.appendChild(J);
}return{containerDiv:P,contentDiv:J};
};
SimileAjax.Graphics.createAnimation=function(J,G,H,I,F){return new SimileAjax.Graphics._Animation(J,G,H,I,F);
};
SimileAjax.Graphics._Animation=function(J,G,H,I,F){this.f=J;
this.cont=(typeof F=="function")?F:function(){};
this.from=G;
this.to=H;
this.current=G;
this.duration=I;
this.start=new Date().getTime();
this.timePassed=0;
};
SimileAjax.Graphics._Animation.prototype.run=function(){var B=this;
window.setTimeout(function(){B.step();
},50);
};
SimileAjax.Graphics._Animation.prototype.step=function(){this.timePassed+=50;
var H=this.timePassed/this.duration;
var E=-Math.cos(H*Math.PI)/2+0.5;
var F=E*(this.to-this.from)+this.from;
try{this.f(F,F-this.current);
}catch(G){}this.current=F;
if(this.timePassed<this.duration){this.run();
}else{this.f(this.to,0);
this["cont"]();
}};
SimileAjax.Graphics.createStructuredDataCopyButton=function(J,L,H,K){var I=document.createElement("div");
I.style.position="relative";
I.style.display="inline";
I.style.width=L+"px";
I.style.height=H+"px";
I.style.overflow="hidden";
I.style.margin="2px";
if(SimileAjax.Graphics.pngIsTranslucent){I.style.background="url("+J+") no-repeat";
}else{I.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+J+"', sizingMethod='image')";
}var M;
if(SimileAjax.Platform.browser.isIE){M="filter:alpha(opacity=0)";
}else{M="opacity: 0";
}I.innerHTML="<textarea rows='1' autocomplete='off' value='none' style='"+M+"' />";
var N=I.firstChild;
N.style.width=L+"px";
N.style.height=H+"px";
N.onmousedown=function(A){A=(A)?A:((event)?event:null);
if(A.button==2){N.value=K();
N.select();
}};
return I;
};
SimileAjax.Graphics.getWidthHeight=function(G){var E,H;
if(G.getBoundingClientRect==null){E=G.offsetWidth;
H=G.offsetHeight;
}else{var F=G.getBoundingClientRect();
E=Math.ceil(F.right-F.left);
H=Math.ceil(F.bottom-F.top);
}return{width:E,height:H};
};
SimileAjax.Graphics.getFontRenderingContext=function(C,D){return new SimileAjax.Graphics._FontRenderingContext(C,D);
};
SimileAjax.Graphics._FontRenderingContext=function(C,D){this._elmt=C;
this._elmt.style.visibility="hidden";
if(typeof D=="string"){this._elmt.style.width=D;
}else{if(typeof D=="number"){this._elmt.style.width=D+"px";
}}};
SimileAjax.Graphics._FontRenderingContext.prototype.dispose=function(){this._elmt=null;
};
SimileAjax.Graphics._FontRenderingContext.prototype.update=function(){this._elmt.innerHTML="A";
this._lineHeight=this._elmt.offsetHeight;
};
SimileAjax.Graphics._FontRenderingContext.prototype.computeSize=function(F,G){var H=this._elmt;
H.innerHTML=F;
H.className=G===undefined?"":G;
var E=SimileAjax.Graphics.getWidthHeight(H);
H.className="";
return E;
};
SimileAjax.Graphics._FontRenderingContext.prototype.getLineHeight=function(){return this._lineHeight;
};
SimileAjax.History={maxHistoryLength:10,historyFile:"__history__.html",enabled:true,_initialized:false,_listeners:new SimileAjax.ListenerQueue(),_actions:[],_baseIndex:0,_currentIndex:0,_plainDocumentTitle:document.title};
SimileAjax.History.formatHistoryEntryTitle=function(B){return SimileAjax.History._plainDocumentTitle+" {"+B+"}";
};
SimileAjax.History.initialize=function(){if(SimileAjax.History._initialized){return ;
}if(SimileAjax.History.enabled){var B=document.createElement("iframe");
B.id="simile-ajax-history";
B.style.position="absolute";
B.style.width="10px";
B.style.height="10px";
B.style.top="0px";
B.style.left="0px";
B.style.visibility="hidden";
B.src=SimileAjax.History.historyFile+"?0";
document.body.appendChild(B);
SimileAjax.DOM.registerEvent(B,"load",SimileAjax.History._handleIFrameOnLoad);
SimileAjax.History._iframe=B;
}SimileAjax.History._initialized=true;
};
SimileAjax.History.addListener=function(B){SimileAjax.History.initialize();
SimileAjax.History._listeners.add(B);
};
SimileAjax.History.removeListener=function(B){SimileAjax.History.initialize();
SimileAjax.History._listeners.remove(B);
};
SimileAjax.History.addAction=function(B){SimileAjax.History.initialize();
SimileAjax.History._listeners.fire("onBeforePerform",[B]);
window.setTimeout(function(){try{B.perform();
SimileAjax.History._listeners.fire("onAfterPerform",[B]);
if(SimileAjax.History.enabled){SimileAjax.History._actions=SimileAjax.History._actions.slice(0,SimileAjax.History._currentIndex-SimileAjax.History._baseIndex);
SimileAjax.History._actions.push(B);
SimileAjax.History._currentIndex++;
var E=SimileAjax.History._actions.length-SimileAjax.History.maxHistoryLength;
if(E>0){SimileAjax.History._actions=SimileAjax.History._actions.slice(E);
SimileAjax.History._baseIndex+=E;
}try{SimileAjax.History._iframe.contentWindow.location.search="?"+SimileAjax.History._currentIndex;
}catch(F){var A=SimileAjax.History.formatHistoryEntryTitle(B.label);
document.title=A;
}}}catch(F){SimileAjax.Debug.exception(F,"Error adding action {"+B.label+"} to history");
}},0);
};
SimileAjax.History.addLengthyAction=function(E,D,F){SimileAjax.History.addAction({perform:E,undo:D,label:F,uiLayer:SimileAjax.WindowManager.getBaseLayer(),lengthy:true});
};
SimileAjax.History._handleIFrameOnLoad=function(){try{var L=SimileAjax.History._iframe.contentWindow.location.search;
var H=(L.length==0)?0:Math.max(0,parseInt(L.substr(1)));
var I=function(){var A=H-SimileAjax.History._currentIndex;
SimileAjax.History._currentIndex+=A;
SimileAjax.History._baseIndex+=A;
SimileAjax.History._iframe.contentWindow.location.search="?"+H;
};
if(H<SimileAjax.History._currentIndex){SimileAjax.History._listeners.fire("onBeforeUndoSeveral",[]);
window.setTimeout(function(){while(SimileAjax.History._currentIndex>H&&SimileAjax.History._currentIndex>SimileAjax.History._baseIndex){SimileAjax.History._currentIndex--;
var B=SimileAjax.History._actions[SimileAjax.History._currentIndex-SimileAjax.History._baseIndex];
try{B.undo();
}catch(A){SimileAjax.Debug.exception(A,"History: Failed to undo action {"+B.label+"}");
}}SimileAjax.History._listeners.fire("onAfterUndoSeveral",[]);
I();
},0);
}else{if(H>SimileAjax.History._currentIndex){SimileAjax.History._listeners.fire("onBeforeRedoSeveral",[]);
window.setTimeout(function(){while(SimileAjax.History._currentIndex<H&&SimileAjax.History._currentIndex-SimileAjax.History._baseIndex<SimileAjax.History._actions.length){var B=SimileAjax.History._actions[SimileAjax.History._currentIndex-SimileAjax.History._baseIndex];
try{B.perform();
}catch(A){SimileAjax.Debug.exception(A,"History: Failed to redo action {"+B.label+"}");
}SimileAjax.History._currentIndex++;
}SimileAjax.History._listeners.fire("onAfterRedoSeveral",[]);
I();
},0);
}else{var G=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex-1;
var J=(G>=0&&G<SimileAjax.History._actions.length)?SimileAjax.History.formatHistoryEntryTitle(SimileAjax.History._actions[G].label):SimileAjax.History._plainDocumentTitle;
SimileAjax.History._iframe.contentWindow.document.title=J;
document.title=J;
}}}catch(K){}};
SimileAjax.History.getNextUndoAction=function(){try{var C=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex-1;
return SimileAjax.History._actions[C];
}catch(D){return null;
}};
SimileAjax.History.getNextRedoAction=function(){try{var C=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex;
return SimileAjax.History._actions[C];
}catch(D){return null;
}};
SimileAjax.HTML=new Object();
SimileAjax.HTML._e2uHash={};
(function(){var B=SimileAjax.HTML._e2uHash;
B["nbsp"]="\u00A0[space]";
B["iexcl"]="\u00A1";
B["cent"]="\u00A2";
B["pound"]="\u00A3";
B["curren"]="\u00A4";
B["yen"]="\u00A5";
B["brvbar"]="\u00A6";
B["sect"]="\u00A7";
B["uml"]="\u00A8";
B["copy"]="\u00A9";
B["ordf"]="\u00AA";
B["laquo"]="\u00AB";
B["not"]="\u00AC";
B["shy"]="\u00AD";
B["reg"]="\u00AE";
B["macr"]="\u00AF";
B["deg"]="\u00B0";
B["plusmn"]="\u00B1";
B["sup2"]="\u00B2";
B["sup3"]="\u00B3";
B["acute"]="\u00B4";
B["micro"]="\u00B5";
B["para"]="\u00B6";
B["middot"]="\u00B7";
B["cedil"]="\u00B8";
B["sup1"]="\u00B9";
B["ordm"]="\u00BA";
B["raquo"]="\u00BB";
B["frac14"]="\u00BC";
B["frac12"]="\u00BD";
B["frac34"]="\u00BE";
B["iquest"]="\u00BF";
B["Agrave"]="\u00C0";
B["Aacute"]="\u00C1";
B["Acirc"]="\u00C2";
B["Atilde"]="\u00C3";
B["Auml"]="\u00C4";
B["Aring"]="\u00C5";
B["AElig"]="\u00C6";
B["Ccedil"]="\u00C7";
B["Egrave"]="\u00C8";
B["Eacute"]="\u00C9";
B["Ecirc"]="\u00CA";
B["Euml"]="\u00CB";
B["Igrave"]="\u00CC";
B["Iacute"]="\u00CD";
B["Icirc"]="\u00CE";
B["Iuml"]="\u00CF";
B["ETH"]="\u00D0";
B["Ntilde"]="\u00D1";
B["Ograve"]="\u00D2";
B["Oacute"]="\u00D3";
B["Ocirc"]="\u00D4";
B["Otilde"]="\u00D5";
B["Ouml"]="\u00D6";
B["times"]="\u00D7";
B["Oslash"]="\u00D8";
B["Ugrave"]="\u00D9";
B["Uacute"]="\u00DA";
B["Ucirc"]="\u00DB";
B["Uuml"]="\u00DC";
B["Yacute"]="\u00DD";
B["THORN"]="\u00DE";
B["szlig"]="\u00DF";
B["agrave"]="\u00E0";
B["aacute"]="\u00E1";
B["acirc"]="\u00E2";
B["atilde"]="\u00E3";
B["auml"]="\u00E4";
B["aring"]="\u00E5";
B["aelig"]="\u00E6";
B["ccedil"]="\u00E7";
B["egrave"]="\u00E8";
B["eacute"]="\u00E9";
B["ecirc"]="\u00EA";
B["euml"]="\u00EB";
B["igrave"]="\u00EC";
B["iacute"]="\u00ED";
B["icirc"]="\u00EE";
B["iuml"]="\u00EF";
B["eth"]="\u00F0";
B["ntilde"]="\u00F1";
B["ograve"]="\u00F2";
B["oacute"]="\u00F3";
B["ocirc"]="\u00F4";
B["otilde"]="\u00F5";
B["ouml"]="\u00F6";
B["divide"]="\u00F7";
B["oslash"]="\u00F8";
B["ugrave"]="\u00F9";
B["uacute"]="\u00FA";
B["ucirc"]="\u00FB";
B["uuml"]="\u00FC";
B["yacute"]="\u00FD";
B["thorn"]="\u00FE";
B["yuml"]="\u00FF";
B["quot"]="\u0022";
B["amp"]="\u0026";
B["lt"]="\u003C";
B["gt"]="\u003E";
B["OElig"]="";
B["oelig"]="\u0153";
B["Scaron"]="\u0160";
B["scaron"]="\u0161";
B["Yuml"]="\u0178";
B["circ"]="\u02C6";
B["tilde"]="\u02DC";
B["ensp"]="\u2002";
B["emsp"]="\u2003";
B["thinsp"]="\u2009";
B["zwnj"]="\u200C";
B["zwj"]="\u200D";
B["lrm"]="\u200E";
B["rlm"]="\u200F";
B["ndash"]="\u2013";
B["mdash"]="\u2014";
B["lsquo"]="\u2018";
B["rsquo"]="\u2019";
B["sbquo"]="\u201A";
B["ldquo"]="\u201C";
B["rdquo"]="\u201D";
B["bdquo"]="\u201E";
B["dagger"]="\u2020";
B["Dagger"]="\u2021";
B["permil"]="\u2030";
B["lsaquo"]="\u2039";
B["rsaquo"]="\u203A";
B["euro"]="\u20AC";
B["fnof"]="\u0192";
B["Alpha"]="\u0391";
B["Beta"]="\u0392";
B["Gamma"]="\u0393";
B["Delta"]="\u0394";
B["Epsilon"]="\u0395";
B["Zeta"]="\u0396";
B["Eta"]="\u0397";
B["Theta"]="\u0398";
B["Iota"]="\u0399";
B["Kappa"]="\u039A";
B["Lambda"]="\u039B";
B["Mu"]="\u039C";
B["Nu"]="\u039D";
B["Xi"]="\u039E";
B["Omicron"]="\u039F";
B["Pi"]="\u03A0";
B["Rho"]="\u03A1";
B["Sigma"]="\u03A3";
B["Tau"]="\u03A4";
B["Upsilon"]="\u03A5";
B["Phi"]="\u03A6";
B["Chi"]="\u03A7";
B["Psi"]="\u03A8";
B["Omega"]="\u03A9";
B["alpha"]="\u03B1";
B["beta"]="\u03B2";
B["gamma"]="\u03B3";
B["delta"]="\u03B4";
B["epsilon"]="\u03B5";
B["zeta"]="\u03B6";
B["eta"]="\u03B7";
B["theta"]="\u03B8";
B["iota"]="\u03B9";
B["kappa"]="\u03BA";
B["lambda"]="\u03BB";
B["mu"]="\u03BC";
B["nu"]="\u03BD";
B["xi"]="\u03BE";
B["omicron"]="\u03BF";
B["pi"]="\u03C0";
B["rho"]="\u03C1";
B["sigmaf"]="\u03C2";
B["sigma"]="\u03C3";
B["tau"]="\u03C4";
B["upsilon"]="\u03C5";
B["phi"]="\u03C6";
B["chi"]="\u03C7";
B["psi"]="\u03C8";
B["omega"]="\u03C9";
B["thetasym"]="\u03D1";
B["upsih"]="\u03D2";
B["piv"]="\u03D6";
B["bull"]="\u2022";
B["hellip"]="\u2026";
B["prime"]="\u2032";
B["Prime"]="\u2033";
B["oline"]="\u203E";
B["frasl"]="\u2044";
B["weierp"]="\u2118";
B["image"]="\u2111";
B["real"]="\u211C";
B["trade"]="\u2122";
B["alefsym"]="\u2135";
B["larr"]="\u2190";
B["uarr"]="\u2191";
B["rarr"]="\u2192";
B["darr"]="\u2193";
B["harr"]="\u2194";
B["crarr"]="\u21B5";
B["lArr"]="\u21D0";
B["uArr"]="\u21D1";
B["rArr"]="\u21D2";
B["dArr"]="\u21D3";
B["hArr"]="\u21D4";
B["forall"]="\u2200";
B["part"]="\u2202";
B["exist"]="\u2203";
B["empty"]="\u2205";
B["nabla"]="\u2207";
B["isin"]="\u2208";
B["notin"]="\u2209";
B["ni"]="\u220B";
B["prod"]="\u220F";
B["sum"]="\u2211";
B["minus"]="\u2212";
B["lowast"]="\u2217";
B["radic"]="\u221A";
B["prop"]="\u221D";
B["infin"]="\u221E";
B["ang"]="\u2220";
B["and"]="\u2227";
B["or"]="\u2228";
B["cap"]="\u2229";
B["cup"]="\u222A";
B["int"]="\u222B";
B["there4"]="\u2234";
B["sim"]="\u223C";
B["cong"]="\u2245";
B["asymp"]="\u2248";
B["ne"]="\u2260";
B["equiv"]="\u2261";
B["le"]="\u2264";
B["ge"]="\u2265";
B["sub"]="\u2282";
B["sup"]="\u2283";
B["nsub"]="\u2284";
B["sube"]="\u2286";
B["supe"]="\u2287";
B["oplus"]="\u2295";
B["otimes"]="\u2297";
B["perp"]="\u22A5";
B["sdot"]="\u22C5";
B["lceil"]="\u2308";
B["rceil"]="\u2309";
B["lfloor"]="\u230A";
B["rfloor"]="\u230B";
B["lang"]="\u2329";
B["rang"]="\u232A";
B["loz"]="\u25CA";
B["spades"]="\u2660";
B["clubs"]="\u2663";
B["hearts"]="\u2665";
B["diams"]="\u2666";
})();
SimileAjax.HTML.deEntify=function(G){var F=SimileAjax.HTML._e2uHash;
var H=/&(\w+?);/;
while(H.test(G)){var E=G.match(H);
G=G.replace(H,F[E[1]]);
}return G;
};
SimileAjax.JSON=new Object();
(function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
var s={array:function(x){var a=["["],b,f,i,l=x.length,v;
for(i=0;
i<l;
i+=1){v=x[i];
f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){if(b){a[a.length]=",";
}a[a.length]=v;
b=true;
}}}a[a.length]="]";
return a.join("");
},"boolean":function(x){return String(x);
},"null":function(x){return"null";
},number:function(x){return isFinite(x)?String(x):"null";
},object:function(x){if(x){if(x instanceof Array){return s.array(x);
}var a=["{"],b,f,i,v;
for(i in x){v=x[i];
f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){if(b){a[a.length]=",";
}a.push(s.string(i),":",v);
b=true;
}}}a[a.length]="}";
return a.join("");
}return"null";
},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];
if(c){return c;
}c=b.charCodeAt();
return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);
});
}return'"'+x+'"';
}};
SimileAjax.JSON.toJSONString=function(o){if(o instanceof Object){return s.object(o);
}else{if(o instanceof Array){return s.array(o);
}else{return o.toString();
}}};
SimileAjax.JSON.parseJSON=function(){try{return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+this+")");
}catch(e){return false;
}};
})();
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");
};
String.prototype.startsWith=function(B){return this.length>=B.length&&this.substr(0,B.length)==B;
};
String.prototype.endsWith=function(B){return this.length>=B.length&&this.substr(this.length-B.length)==B;
};
String.substitute=function(L,J){var G="";
var H=0;
while(H<L.length-1){var K=L.indexOf("%",H);
if(K<0||K==L.length-1){break;
}else{if(K>H&&L.charAt(K-1)=="\\"){G+=L.substring(H,K-1)+"%";
H=K+1;
}else{var I=parseInt(L.charAt(K+1));
if(isNaN(I)||I>=J.length){G+=L.substring(H,K+2);
}else{G+=L.substring(H,K)+J[I].toString();
}H=K+2;
}}}if(H<L.length){G+=L.substring(H);
}return G;
};
SimileAjax.NativeDateUnit=new Object();
SimileAjax.NativeDateUnit.makeDefaultValue=function(){return new Date();
};
SimileAjax.NativeDateUnit.cloneValue=function(B){return new Date(B.getTime());
};
SimileAjax.NativeDateUnit.getParser=function(C){if(typeof C=="string"){C=C.toLowerCase();
}var D=(C=="iso8601"||C=="iso 8601")?SimileAjax.DateTime.parseIso8601DateTime:SimileAjax.DateTime.parseGregorianDateTime;
return function(A){if(typeof A!="undefined"&&typeof A.toUTCString=="function"){return A;
}else{return D(A);
}};
};
SimileAjax.NativeDateUnit.parseFromObject=function(B){return SimileAjax.DateTime.parseGregorianDateTime(B);
};
SimileAjax.NativeDateUnit.toNumber=function(B){return B.getTime();
};
SimileAjax.NativeDateUnit.fromNumber=function(B){return new Date(B);
};
SimileAjax.NativeDateUnit.compare=function(F,G){var H,E;
if(typeof F=="object"){H=F.getTime();
}else{H=Number(F);
}if(typeof G=="object"){E=G.getTime();
}else{E=Number(G);
}return H-E;
};
SimileAjax.NativeDateUnit.earlier=function(D,C){return SimileAjax.NativeDateUnit.compare(D,C)<0?D:C;
};
SimileAjax.NativeDateUnit.later=function(D,C){return SimileAjax.NativeDateUnit.compare(D,C)>0?D:C;
};
SimileAjax.NativeDateUnit.change=function(C,D){return new Date(C.getTime()+D);
};
SimileAjax.WindowManager={_initialized:false,_listeners:[],_draggedElement:null,_draggedElementCallback:null,_dropTargetHighlightElement:null,_lastCoords:null,_ghostCoords:null,_draggingMode:"",_dragging:false,_layers:[]};
SimileAjax.WindowManager.initialize=function(){if(SimileAjax.WindowManager._initialized){return ;
}SimileAjax.DOM.registerEvent(document.body,"mousedown",SimileAjax.WindowManager._onBodyMouseDown);
SimileAjax.DOM.registerEvent(document.body,"mousemove",SimileAjax.WindowManager._onBodyMouseMove);
SimileAjax.DOM.registerEvent(document.body,"mouseup",SimileAjax.WindowManager._onBodyMouseUp);
SimileAjax.DOM.registerEvent(document,"keydown",SimileAjax.WindowManager._onBodyKeyDown);
SimileAjax.DOM.registerEvent(document,"keyup",SimileAjax.WindowManager._onBodyKeyUp);
SimileAjax.WindowManager._layers.push({index:0});
SimileAjax.WindowManager._historyListener={onBeforeUndoSeveral:function(){},onAfterUndoSeveral:function(){},onBeforeUndo:function(){},onAfterUndo:function(){},onBeforeRedoSeveral:function(){},onAfterRedoSeveral:function(){},onBeforeRedo:function(){},onAfterRedo:function(){}};
SimileAjax.History.addListener(SimileAjax.WindowManager._historyListener);
SimileAjax.WindowManager._initialized=true;
};
SimileAjax.WindowManager.getBaseLayer=function(){SimileAjax.WindowManager.initialize();
return SimileAjax.WindowManager._layers[0];
};
SimileAjax.WindowManager.getHighestLayer=function(){SimileAjax.WindowManager.initialize();
return SimileAjax.WindowManager._layers[SimileAjax.WindowManager._layers.length-1];
};
SimileAjax.WindowManager.registerEventWithObject=function(H,F,G,J,I){SimileAjax.WindowManager.registerEvent(H,F,function(B,C,A){return G[J].call(G,B,C,A);
},I);
};
SimileAjax.WindowManager.registerEvent=function(H,J,G,I){if(I==null){I=SimileAjax.WindowManager.getHighestLayer();
}var F=function(C,D,A){if(SimileAjax.WindowManager._canProcessEventAtLayer(I)){SimileAjax.WindowManager._popToLayer(I.index);
try{G(C,D,A);
}catch(B){SimileAjax.Debug.exception(B);
}}SimileAjax.DOM.cancelEvent(D);
return false;
};
SimileAjax.DOM.registerEvent(H,J,F);
};
SimileAjax.WindowManager.pushLayer=function(G,F,H){var E={onPop:G,index:SimileAjax.WindowManager._layers.length,ephemeral:(F),elmt:H};
SimileAjax.WindowManager._layers.push(E);
return E;
};
SimileAjax.WindowManager.popLayer=function(D){for(var C=1;
C<SimileAjax.WindowManager._layers.length;
C++){if(SimileAjax.WindowManager._layers[C]==D){SimileAjax.WindowManager._popToLayer(C-1);
break;
}}};
SimileAjax.WindowManager.popAllLayers=function(){SimileAjax.WindowManager._popToLayer(0);
};
SimileAjax.WindowManager.registerForDragging=function(F,E,D){SimileAjax.WindowManager.registerEvent(F,"mousedown",function(B,C,A){SimileAjax.WindowManager._handleMouseDown(B,C,E);
},D);
};
SimileAjax.WindowManager._popToLayer=function(E){while(E+1<SimileAjax.WindowManager._layers.length){try{var D=SimileAjax.WindowManager._layers.pop();
if(D.onPop!=null){D.onPop();
}}catch(F){}}};
SimileAjax.WindowManager._canProcessEventAtLayer=function(D){if(D.index==(SimileAjax.WindowManager._layers.length-1)){return true;
}for(var C=D.index+1;
C<SimileAjax.WindowManager._layers.length;
C++){if(!SimileAjax.WindowManager._layers[C].ephemeral){return false;
}}return true;
};
SimileAjax.WindowManager.cancelPopups=function(G){var H=(G)?SimileAjax.DOM.getEventPageCoordinates(G):{x:-1,y:-1};
var I=SimileAjax.WindowManager._layers.length-1;
while(I>0&&SimileAjax.WindowManager._layers[I].ephemeral){var J=SimileAjax.WindowManager._layers[I];
if(J.elmt!=null){var K=J.elmt;
var L=SimileAjax.DOM.getPageCoordinates(K);
if(H.x>=L.left&&H.x<(L.left+K.offsetWidth)&&H.y>=L.top&&H.y<(L.top+K.offsetHeight)){break;
}}I--;
}SimileAjax.WindowManager._popToLayer(I);
};
SimileAjax.WindowManager._onBodyMouseDown=function(F,D,E){if(!("eventPhase" in D)||D.eventPhase==D.BUBBLING_PHASE){SimileAjax.WindowManager.cancelPopups(D);
}};
SimileAjax.WindowManager._handleMouseDown=function(F,D,E){SimileAjax.WindowManager._draggedElement=F;
SimileAjax.WindowManager._draggedElementCallback=E;
SimileAjax.WindowManager._lastCoords={x:D.clientX,y:D.clientY};
SimileAjax.DOM.cancelEvent(D);
return false;
};
SimileAjax.WindowManager._onBodyKeyDown=function(G,E,F){if(SimileAjax.WindowManager._dragging){if(E.keyCode==27){SimileAjax.WindowManager._cancelDragging();
}else{if((E.keyCode==17||E.keyCode==16)&&SimileAjax.WindowManager._draggingMode!="copy"){SimileAjax.WindowManager._draggingMode="copy";
var H=SimileAjax.Graphics.createTranslucentImage(SimileAjax.urlPrefix+"images/copy.png");
H.style.position="absolute";
H.style.left=(SimileAjax.WindowManager._ghostCoords.left-16)+"px";
H.style.top=(SimileAjax.WindowManager._ghostCoords.top)+"px";
document.body.appendChild(H);
SimileAjax.WindowManager._draggingModeIndicatorElmt=H;
}}}};
SimileAjax.WindowManager._onBodyKeyUp=function(F,D,E){if(SimileAjax.WindowManager._dragging){if(D.keyCode==17||D.keyCode==16){SimileAjax.WindowManager._draggingMode="";
if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){document.body.removeChild(SimileAjax.WindowManager._draggingModeIndicatorElmt);
SimileAjax.WindowManager._draggingModeIndicatorElmt=null;
}}}};
SimileAjax.WindowManager._onBodyMouseMove=function(T,W,c){if(SimileAjax.WindowManager._draggedElement!=null){var U=SimileAjax.WindowManager._draggedElementCallback;
var f=SimileAjax.WindowManager._lastCoords;
var X=W.clientX-f.x;
var a=W.clientY-f.y;
if(!SimileAjax.WindowManager._dragging){if(Math.abs(X)>5||Math.abs(a)>5){try{if("onDragStart" in U){U.onDragStart();
}if("ghost" in U&&U.ghost){var Z=SimileAjax.WindowManager._draggedElement;
SimileAjax.WindowManager._ghostCoords=SimileAjax.DOM.getPageCoordinates(Z);
SimileAjax.WindowManager._ghostCoords.left+=X;
SimileAjax.WindowManager._ghostCoords.top+=a;
var V=Z.cloneNode(true);
V.style.position="absolute";
V.style.left=SimileAjax.WindowManager._ghostCoords.left+"px";
V.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";
V.style.zIndex=1000;
SimileAjax.Graphics.setOpacity(V,50);
document.body.appendChild(V);
U._ghostElmt=V;
}SimileAjax.WindowManager._dragging=true;
SimileAjax.WindowManager._lastCoords={x:W.clientX,y:W.clientY};
document.body.focus();
}catch(d){SimileAjax.Debug.exception("WindowManager: Error handling mouse down",d);
SimileAjax.WindowManager._cancelDragging();
}}}else{try{SimileAjax.WindowManager._lastCoords={x:W.clientX,y:W.clientY};
if("onDragBy" in U){U.onDragBy(X,a);
}if("_ghostElmt" in U){var V=U._ghostElmt;
SimileAjax.WindowManager._ghostCoords.left+=X;
SimileAjax.WindowManager._ghostCoords.top+=a;
V.style.left=SimileAjax.WindowManager._ghostCoords.left+"px";
V.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";
if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){var b=SimileAjax.WindowManager._draggingModeIndicatorElmt;
b.style.left=(SimileAjax.WindowManager._ghostCoords.left-16)+"px";
b.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";
}if("droppable" in U&&U.droppable){var Y=SimileAjax.DOM.getEventPageCoordinates(W);
var c=SimileAjax.DOM.hittest(Y.x,Y.y,[SimileAjax.WindowManager._ghostElmt,SimileAjax.WindowManager._dropTargetHighlightElement]);
c=SimileAjax.WindowManager._findDropTarget(c);
if(c!=SimileAjax.WindowManager._potentialDropTarget){if(SimileAjax.WindowManager._dropTargetHighlightElement!=null){document.body.removeChild(SimileAjax.WindowManager._dropTargetHighlightElement);
SimileAjax.WindowManager._dropTargetHighlightElement=null;
SimileAjax.WindowManager._potentialDropTarget=null;
}var e=false;
if(c!=null){if((!("canDropOn" in U)||U.canDropOn(c))&&(!("canDrop" in c)||c.canDrop(SimileAjax.WindowManager._draggedElement))){e=true;
}}if(e){var R=4;
var Q=SimileAjax.DOM.getPageCoordinates(c);
var S=document.createElement("div");
S.style.border=R+"px solid yellow";
S.style.backgroundColor="yellow";
S.style.position="absolute";
S.style.left=Q.left+"px";
S.style.top=Q.top+"px";
S.style.width=(c.offsetWidth-R*2)+"px";
S.style.height=(c.offsetHeight-R*2)+"px";
SimileAjax.Graphics.setOpacity(S,30);
document.body.appendChild(S);
SimileAjax.WindowManager._potentialDropTarget=c;
SimileAjax.WindowManager._dropTargetHighlightElement=S;
}}}}}catch(d){SimileAjax.Debug.exception("WindowManager: Error handling mouse move",d);
SimileAjax.WindowManager._cancelDragging();
}}SimileAjax.DOM.cancelEvent(W);
return false;
}};
SimileAjax.WindowManager._onBodyMouseUp=function(J,F,I){if(SimileAjax.WindowManager._draggedElement!=null){try{if(SimileAjax.WindowManager._dragging){var G=SimileAjax.WindowManager._draggedElementCallback;
if("onDragEnd" in G){G.onDragEnd();
}if("droppable" in G&&G.droppable){var H=false;
var I=SimileAjax.WindowManager._potentialDropTarget;
if(I!=null){if((!("canDropOn" in G)||G.canDropOn(I))&&(!("canDrop" in I)||I.canDrop(SimileAjax.WindowManager._draggedElement))){if("onDropOn" in G){G.onDropOn(I);
}I.ondrop(SimileAjax.WindowManager._draggedElement,SimileAjax.WindowManager._draggingMode);
H=true;
}}if(!H){}}}}finally{SimileAjax.WindowManager._cancelDragging();
}SimileAjax.DOM.cancelEvent(F);
return false;
}};
SimileAjax.WindowManager._cancelDragging=function(){var D=SimileAjax.WindowManager._draggedElementCallback;
if("_ghostElmt" in D){var C=D._ghostElmt;
document.body.removeChild(C);
delete D._ghostElmt;
}if(SimileAjax.WindowManager._dropTargetHighlightElement!=null){document.body.removeChild(SimileAjax.WindowManager._dropTargetHighlightElement);
SimileAjax.WindowManager._dropTargetHighlightElement=null;
}if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){document.body.removeChild(SimileAjax.WindowManager._draggingModeIndicatorElmt);
SimileAjax.WindowManager._draggingModeIndicatorElmt=null;
}SimileAjax.WindowManager._draggedElement=null;
SimileAjax.WindowManager._draggedElementCallback=null;
SimileAjax.WindowManager._potentialDropTarget=null;
SimileAjax.WindowManager._dropTargetHighlightElement=null;
SimileAjax.WindowManager._lastCoords=null;
SimileAjax.WindowManager._ghostCoords=null;
SimileAjax.WindowManager._draggingMode="";
SimileAjax.WindowManager._dragging=false;
};
SimileAjax.WindowManager._findDropTarget=function(B){while(B!=null){if("ondrop" in B&&(typeof B.ondrop)=="function"){break;
}B=B.parentNode;
}return B;
};
SimileAjax.XmlHttp=new Object();
SimileAjax.XmlHttp._onReadyStateChange=function(E,F,H){switch(E.readyState){case 4:try{if(E.status==0||E.status==200){if(H){H(E);
}}else{if(F){F(E.statusText,E.status,E);
}}}catch(G){SimileAjax.Debug.exception("XmlHttp: Error handling onReadyStateChange",G);
}break;
}};
SimileAjax.XmlHttp._createRequest=function(){if(SimileAjax.Platform.browser.isIE){var G=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
for(var L=0;
L<G.length;
L++){try{var K=G[L];
var J=function(){return new ActiveXObject(K);
};
var H=J();
SimileAjax.XmlHttp._createRequest=J;
return H;
}catch(I){}}}try{var J=function(){return new XMLHttpRequest();
};
var H=J();
SimileAjax.XmlHttp._createRequest=J;
return H;
}catch(I){throw new Error("Failed to create an XMLHttpRequest object");
}};
SimileAjax.XmlHttp.get=function(E,F,G){var H=SimileAjax.XmlHttp._createRequest();
H.open("GET",E,true);
H.onreadystatechange=function(){SimileAjax.XmlHttp._onReadyStateChange(H,F,G);
};
H.send(null);
};
SimileAjax.XmlHttp.post=function(J,F,G,H){var I=SimileAjax.XmlHttp._createRequest();
I.open("POST",J,true);
I.onreadystatechange=function(){SimileAjax.XmlHttp._onReadyStateChange(I,G,H);
};
I.send(F);
};
SimileAjax.XmlHttp._forceXML=function(C){try{C.overrideMimeType("text/xml");
}catch(D){C.setrequestheader("Content-Type","text/xml");
}};


/* compile-epilog.js */
(function(){var f=null;
if("SimileWidgets_onLoad" in window){if(typeof SimileWidgets_onLoad=="string"){f=eval(SimileWidgets_onLoad);
SimileWidgets_onLoad=null;
}else{if(typeof SimileWidgets_onLoad=="function"){f=SimileWidgets_onLoad;
SimileWidgets_onLoad=null;
}}}if(f!=null){f();
}})();
